 |
|
<<O>> Difference Topic
BuildingJXTA
(21 - 04 Dec 2007 - Main.MikeDuigou)
|
| |
| META TOPICPARENT | name="WebHome" |
Included are all the steps required to obtain, build and run a working copy of the JXSE Shell. The prerequisites are: | | | % ant
| |
< < | At this point you should have a freshly minted working copy of JXTA Shell that is invokable as follows: | > > | At this point you should have a freshly minted working copy of JXTA Shell that is invokable as follows: | | |
% ant run |
|
<<O>> Difference Topic
BuildingJXTA
(20 - 31 Oct 2007 - Main.MikeDuigou)
|
| |
| META TOPICPARENT | name="WebHome" |
Included are all the steps required to obtain, build and run a working copy of the JXSE Shell. The prerequisites are: | |
< < |
- JDK 5.0
| > > |
- Java SE JDK 5.0
| | |
- Ant 1.6.3+
| |
< < |
- Subversion (cvs client)
| > > |
- Subversion (svn client)
| | | With the above prerequisites installed and available in your system environment, create a JXTA workspace: |
|
<<O>> Difference Topic
BuildingJXTA
(19 - 15 Oct 2007 - Main.MikeDuigou)
|
| |
| META TOPICPARENT | name="WebHome" |
| |
< < | Included are all the steps required to obtain, build and run a working copy of the JXTA Shell. The prerequisites are: | > > | Included are all the steps required to obtain, build and run a working copy of the JXSE Shell. The prerequisites are: | | | | |
< < |
- J2SDK 1.4.2+
- Ant 1.6+
- CVS (cvs client)
| > > |
- JDK 5.0
- Ant 1.6.3+
- Subversion (cvs client)
| | | | |
< < | With the above prerequisites installed and available in your system environment, create a JXTA workspace: | > > | With the above prerequisites installed and available in your system environment, create a JXTA workspace: | | |
% mkdir ~/jxta
% cd ~/jxta
| |
< < | Next, obtain a working copy of the "JXTA Bootstrapper" by copying the bootstrap.xml file into the working directory created above. The bootstrap.xml file is comprised of the following: | > > | Next, check out the source code for the JXSE core and the JXSE Shell: | | | | |
< < |
<get src="${http.url}"
dest="./install.xml"
usetimestamp="true"/>
<ant antfile="install.xml"
dir="."
inheritAll="false"/>
<setproxy socksproxyhost="${socks.proxyHost}"
socksproxyport="${socks.proxyPort}"/>
<exec executable="cvs" failifexecutionfails="true"
outputproperty="cvs.ignore"/>
| > > | % svn checkout https://jxta-jxse.dev.java.net/svn/jxta-jxse/trunk jxta-jxse --username guest
% svn checkout https://jxse-shell.dev.java.net/svn/jxse-shell/trunk jxse-shell --username guest | | | | |
< < | Lastly, execute the bootstrapper as follows: | > > | Lastly, and this really is the last step, execute the ant scripts to build the core and shell: | | | | |
< < | % ant -f bootstrap.xml | > > | % cd jxta-jxse
% ant
% cd ..
% cd jxse-shell
% ant | | |
At this point you should have a freshly minted working copy of JXTA Shell that is invokable as follows: | |
< < | % cd shell/binding/java | | | % ant run
| |
< < | The install process can be executed as needed to refresh your local workspace:
% ant -f install.xml
This build process can be leveraged, in turn, by any JXTA application. The MyJXTA project uses the process to great advantage as follows:
% ant -Dcvs.project=myjxta2 -f bootstrap.xml
After which the newly created MyJXTA application can be invoked as follows:
% cd myjxta2
% ant run
Further, constructing a relative ant.properties file comprised of the relevant project build dependencies provides for consistent build processes across project boundaries. Followng is a list of all possible build configurables:
| property | description | default | values |
| cvs.project | project name | shell | security, platform, shell, cms, and myjxta2 |
| cvs.version | repository tag | | valid cvs tag |
| cvs.user | repository user | guest | valid cvs login |
| cvs.server | repository | cvs.jxta.org | valid cvs server |
| cvs.directory | module | project name | any directory name |
| cvs.destination | local workspace | current working directory | any directory name |
| http.proxyHost | http proxy server | | any proxy server |
| http.proxyPort | http proxy port | 8080 | any proxy port |
| socks.proxyHost | socks server | | any socks server |
| socks.proxyPort | socks port | 1080 | any socks port |
The associated MyJXTA ant.properties is as follows:
cvs.project:myjxta2
With this file in place, the MyJXTA bootstrap process is as follows: | > > | You can refresh your local workspace using : | | | | |
< < | % ant -f bootstrap.xml | > > | % svn update jxta-jxse jxse-shell | | |
HowToBuildUsingJBuilder?
HowToBuildUsingNetBeans
HowToBuildUsingJEdit?
| |
> > | BuildingJXTAUsingMaven
| | | HowToBuildUsingEclipse
-- JamesTodd - 19 Jul 2004 |
| |
| META TOPICPARENT | name="WebHome" |
Included are all the steps required to obtain, build and run a working copy of the JXTA Shell. The prerequisites are: | | | % cd ~/jxta
| |
< < | note: the above processes can be replicated for non *nix based systems as needed. The only additional requirement is CVS or a *nix shell, like cygwin, with CVS. | | | Next, obtain a working copy of the "JXTA Bootstrapper" by copying the bootstrap.xml file into the working directory created above. The bootstrap.xml file is comprised of the following: | | | socksproxyport="${socks.proxyPort}"/>
| |
> > |
<exec executable="cvs" failifexecutionfails="true"
outputproperty="cvs.ignore"/>
| | |
|
| |
| META TOPICPARENT | name="WebHome" |
Included are all the steps required to obtain, build and run a working copy of the JXTA Shell. The prerequisites are:
- J2SDK 1.4.2+
- Ant 1.6+
| |
> > |
- CVS (cvs client)
| | | With the above prerequisites installed and available in your system environment, create a JXTA workspace: | | | After which the newly created MyJXTA application can be invoked as follows: | |
< < | % cd myjxta2/binding/java | > > | % cd myjxta2 | | | % ant run
|
| |
| META TOPICPARENT | name="WebHome" |
Included are all the steps required to obtain, build and run a working copy of the JXTA Shell. The prerequisites are: | | | note: the above processes can be replicated for non *nix based systems as needed. The only additional requirement is CVS or a *nix shell, like cygwin, with CVS. | |
< < | Next, obtain a working copy of the "JXTA Bootstrapper" by copying the bootstrap.xml file into the JXTA workspace. The bootstrap.xml file is comprised of the following: | > > | Next, obtain a working copy of the "JXTA Bootstrapper" by copying the bootstrap.xml file into the working directory created above. The bootstrap.xml file is comprised of the following: | | |
<?xml version="1.0" encoding="utf-8"?> |
| |
| META TOPICPARENT | name="WebHome" |
Included are all the steps required to obtain, build and run a working copy of the JXTA Shell. The prerequisites are: | | | % cd ~/jxta
| |
< < | note: the above processes can be replicated for not *nix based systems as needed. The only additional requirement is CVS or a *nix shell, like cygwin, with CVS. | > > | note: the above processes can be replicated for non *nix based systems as needed. The only additional requirement is CVS or a *nix shell, like cygwin, with CVS. | | | Next, obtain a working copy of the "JXTA Bootstrapper" by copying the bootstrap.xml file into the JXTA workspace. The bootstrap.xml file is comprised of the following: | | | HowToBuildUsingNetBeans
HowToBuildUsingJEdit?
HowToBuildUsingEclipse | |
> > | -- JamesTodd - 19 Jul 2004 |
| |
| META TOPICPARENT | name="WebHome" |
Included are all the steps required to obtain, build and run a working copy of the JXTA Shell. The prerequisites are: | | |
| |
< < |
| cvs.verion | repository tag | | valid cvs tag |
| > > |
| cvs.version | repository tag | | valid cvs tag |
| | |
| cvs.user | repository user | guest | valid cvs login |
| cvs.server | repository | cvs.jxta.org | valid cvs server |
| cvs.directory | module | project name | any directory name |
|
| |
| META TOPICPARENT | name="WebHome" |
Included are all the steps required to obtain, build and run a working copy of the JXTA Shell. The prerequisites are: | | |
| cvs.server | repository | cvs.jxta.org | valid cvs server |
| cvs.directory | module | project name | any directory name |
| cvs.destination | local workspace | current working directory | any directory name |
| |
> > |
| http.proxyHost | http proxy server | | any proxy server |
| http.proxyPort | http proxy port | 8080 | any proxy port |
| socks.proxyHost | socks server | | any socks server |
| socks.proxyPort | socks port | 1080 | any socks port |
| | |
The associated MyJXTA ant.properties is as follows: |
| |
| META TOPICPARENT | name="WebHome" |
Included are all the steps required to obtain, build and run a working copy of the JXTA Shell. The prerequisites are: | | | Next, obtain a working copy of the "JXTA Bootstrapper" by copying the bootstrap.xml file into the JXTA workspace. The bootstrap.xml file is comprised of the following: | |
< < | | > > | | | |
| |
< < |
| > > |
<get src="${http.url}"
dest="./install.xml"
usetimestamp="true"/>
<ant antfile="install.xml"
dir="."
inheritAll="false"/>
| | | | |
< < | | > > |
| | | | |
> > |
<setproxy socksproxyhost="${socks.proxyHost}"
socksproxyport="${socks.proxyPort}"/>
| | |
|
| |
| META TOPICPARENT | name="WebHome" |
Included are all the steps required to obtain, build and run a working copy of the JXTA Shell. The prerequisites are: | | | % cd ~/jxta
| |
< < | note: the above processes can be replicated for not *nix based systems as needed. | > > | note: the above processes can be replicated for not *nix based systems as needed. The only additional requirement is CVS or a *nix shell, like cygwin, with CVS. | | | Next, obtain a working copy of the "JXTA Bootstrapper" by copying the bootstrap.xml file into the JXTA workspace. The bootstrap.xml file is comprised of the following: |
| |
| META TOPICPARENT | name="WebHome" |
Included are all the steps required to obtain, build and run a working copy of the JXTA Shell. The prerequisites are: | | | Further, constructing a relative ant.properties file comprised of the relevant project build dependencies provides for consistent build processes across project boundaries. Followng is a list of all possible build configurables:
| |
< < |
| property | description | default |
| cvs.project | project name | shell |
| cvs.verion | repository tag | |
| cvs.user | repository user | guest |
| cvs.server | repository | cvs.jxta.org |
| cvs.directory | module | shell |
| cvs.destination | local workspace | cvs.project |
| > > |
| property | description | default | values |
| cvs.project | project name | shell | security, platform, shell, cms, and myjxta2 |
| cvs.verion | repository tag | | valid cvs tag |
| cvs.user | repository user | guest | valid cvs login |
| cvs.server | repository | cvs.jxta.org | valid cvs server |
| cvs.directory | module | project name | any directory name |
| cvs.destination | local workspace | current working directory | any directory name |
| | |
The associated MyJXTA ant.properties is as follows: |
|
<<O>> Difference Topic
BuildingJXTA
(9 - 16 Apr 2004 - Main.gonzo)
|
| |
| META TOPICPARENT | name="WebHome" |
| |
< < | Included are all the steps required to obtain, build and run a working copy of the JXTA Platform. The prerequisites are: | > > | Included are all the steps required to obtain, build and run a working copy of the JXTA Shell. The prerequisites are: | | | | |
< < |
- J2SDK 1.4.1+ (1.4.2 prefered)
- Ant 1.5.4+ (1.6+ prefered)
| > > |
- J2SDK 1.4.2+
- Ant 1.6+
| | | | |
< < | Using Ant, obtaining, building and running most Core JXTA projects is as easy 1 2 3: | > > | With the above prerequisites installed and available in your system environment, create a JXTA workspace: | | | | |
< < | # create work environment
% mkdir projects
% cd projects
# obtain the source code
% cvs -d :pserver:guest@cvs.jxta.org:/cvs co shell
% cd shell/binding/java
# build
% ant bootstrap
# run
% ant run | > > | % mkdir ~/jxta
% cd ~/jxta | | | | |
< < | Well, as easy as 1 2 3 4 ... but you get the idea. | > > | note: the above processes can be replicated for not *nix based systems as needed. | | | | |
< < | The above example checks out a read-only local copy of the main branch (aka trunk) of the Shell project. Substituting the "guest" user with your JXTA Member ID enables you to check out a commiter (i.e. read-write) work space. Further, in order to build a "tagged" branch the following modifications are required: | > > | Next, obtain a working copy of the "JXTA Bootstrapper" by copying the bootstrap.xml file into the JXTA workspace. The bootstrap.xml file is comprised of the following: | | | | |
< < | # create work environment
% mkdir projects
% cd projects
# obtain the source code
% cvs -d :pserver:guest@cvs.jxta.org:/cvs co -r JXTA_2_2_1_00 -d shell-JXTA_2_2_1_00 shell
% cd shell-JXTA_2_2_1_00/binding/java
# build
% ant bootstrap
# run
% ant run | > > |
| | | | |
< < | An alternative, albeit untested, option is as follows (technically this should work): | > > | Lastly, execute the bootstrapper as follows: | | | | |
< < | # create work environment
% mkdir projects
% cd projects
# obtain the source code
% cvs -d :pserver:guest@cvs.jxta.org:/cvs co -r JXTA_2_2_1_00 -d shell-JXTA_2_2_1_00 shell
% cd shell-JXTA_2_2_1_00/binding/java
# build
% ant -Dtag=JXTA_2_2_1_00 bootstrap
# run
% ant run | > > | % ant -f bootstrap.xml | | | | |
< < | Lastly, litterally all JXTA build properties can be overridden by placing a valid "ant.properties" file in any one or more of the following locations: | > > | At this point you should have a freshly minted working copy of JXTA Shell that is invokable as follows: | | | | |
< < | [JXTA root]/.ant.properties (e.g. peer to shell)
[JXTA project]/.ant.properities (e.g. [JXTA root}/shell/binding/java/.ant.properties)
[user.home]/.ant.properties (e.g. ~/.ant.properties)
The first option, in the "JXTA root," is preferable as it has a larget scope and is not necessarily mixed up with other user "dot" files. A more extreme example of checking out and building a "tagged" branch is as follows:
# create work environment
% mkdir projects
% cd projects
# create .ant.properties
% echo "security.dir=../../../security
platform.dir=../../../platform
shell.dir=../../../shell
cms.dir=../../../cms" > ./.ant.properties
# obtain the source code
% cvs -d :pserver:guest@cvs.jxta.org:/cvs co -r JXTA_2_2_1_00 -d shell-JXTA_2_2_1_00 shell
% cd shell-JXTA_2_2_1_00/binding/java
# build
% ant -Dtag=JXTA_2_2_1_00 bootstrap
# run | > > | % cd shell/binding/java | | | % ant run
| |
< < | The above is just one example of a valid "ant.properties" file.
Following is an example of a JXTA project install script that will likely emerge to further streamline the afore mentioned process: | > > | The install process can be executed as needed to refresh your local workspace: | | | | |
< < | | > > | % ant -f install.xml
| | | | |
< < | | > > | This build process can be leveraged, in turn, by any JXTA application. The MyJXTA project uses the process to great advantage as follows: | | | | |
< < |
| > > |
% ant -Dcvs.project=myjxta2 -f bootstrap.xml
| | | | |
< < |
<cvs command="checkout -d ${cvs.directory}"
cvsRoot=":pserver:${cvs.user}@${cvs.server}:/cvs"
package="${cvs.project}"
tag="${cvs.version}"
dest="${cvs.destination}"/> | > > | After which the newly created MyJXTA application can be invoked as follows: | | | | |
< < | <ant antfile="build.xml"
dir="${cvs.destination}/${cvs.directory}/binding/java"
target="bootstrap"
inheritAll="false"/>
| > > |
% cd myjxta2/binding/java
% ant run | | | | |
< < | Taking into consideration the above script one can build and run a JXTA project as follows: | > > | Further, constructing a relative ant.properties file comprised of the relevant project build dependencies provides for consistent build processes across project boundaries. Followng is a list of all possible build configurables:
| property | description | default |
| cvs.project | project name | shell |
| cvs.verion | repository tag | |
| cvs.user | repository user | guest |
| cvs.server | repository | cvs.jxta.org |
| cvs.directory | module | shell |
| cvs.destination | local workspace | cvs.project |
The associated MyJXTA ant.properties is as follows: | | | | |
< < | # create work environment
% mkdir projects
% cd projects
# procure installation script
% cp {install.xml} .
# install
% ant -f install.xml
# run
% cd {project}/binding/java
% ant run | > > | cvs.project:myjxta2 | | | | |
< < | The install script defaults can be overridden to manage any core JXTA project, eg: | > > | With this file in place, the MyJXTA bootstrap process is as follows: | | | | |
< < | % ant -Dcvs.project=myjxta2 -Dcvs.version=JXTA_2_2_1_STABLE -f install.xml
% cd myjxta2/binding/java
% ant run | > > | % ant -f bootstrap.xml | | | | |
< < | So HowToBuildUsingJBuilder? HowToBuildUsingNetBeans HowToBuildUsingJEdit? HowToBuildUsingEclipse | > > | HowToBuildUsingJBuilder?
HowToBuildUsingNetBeans
HowToBuildUsingJEdit?
HowToBuildUsingEclipse |
|
<<O>> Difference Topic
BuildingJXTA
(8 - 24 Mar 2004 - Main.bondolo)
|
| |
| META TOPICPARENT | name="WebHome" |
Included are all the steps required to obtain, build and run a working copy of the JXTA Platform. The prerequisites are: | |
< < |
- J2SDK 1.4+
- Ant 1.6+
| > > |
- J2SDK 1.4.1+ (1.4.2 prefered)
- Ant 1.5.4+ (1.6+ prefered)
| | | Using Ant, obtaining, building and running most Core JXTA projects is as easy 1 2 3: | | | % mkdir projects
% cd projects
# obtain the source code | |
< < | % cvs -d :pserver:guest@cvs.jxta.org:/cvs co -r JXTA_2_1_1_STABLE -d shell-JXTA_2_1_1_STABLE shell
% cd shell-JXTA_2_1_1_STABLE/binding/java | > > | % cvs -d :pserver:guest@cvs.jxta.org:/cvs co -r JXTA_2_2_1_00 -d shell-JXTA_2_2_1_00 shell
% cd shell-JXTA_2_2_1_00/binding/java | | | # build
% ant bootstrap
# run | | | % mkdir projects
% cd projects
# obtain the source code | |
< < | % cvs -d :pserver:guest@cvs.jxta.org:/cvs co -r JXTA_2_1_1_STABLE -d shell-JXTA_2_1_1_STABLE shell
% cd shell-JXTA_2_1_1_STABLE/binding/java | > > | % cvs -d :pserver:guest@cvs.jxta.org:/cvs co -r JXTA_2_2_1_00 -d shell-JXTA_2_2_1_00 shell
% cd shell-JXTA_2_2_1_00/binding/java | | | # build | |
< < | % ant -Dtag=JXTA_2_1_1_STABLE bootstrap | > > | % ant -Dtag=JXTA_2_2_1_00 bootstrap | | | # run
% ant run
| | | shell.dir=../../../shell
cms.dir=../../../cms" > ./.ant.properties
# obtain the source code | |
< < | % cvs -d :pserver:guest@cvs.jxta.org:/cvs co -r JXTA_2_1_1_STABLE -d shell-JXTA_2_1_1_STABLE shell
% cd shell-JXTA_2_1_1_STABLE/binding/java | > > | % cvs -d :pserver:guest@cvs.jxta.org:/cvs co -r JXTA_2_2_1_00 -d shell-JXTA_2_2_1_00 shell
% cd shell-JXTA_2_2_1_00/binding/java | | | # build | |
< < | % ant -Dtag=JXTA_2_1_1_STABLE bootstrap | > > | % ant -Dtag=JXTA_2_2_1_00 bootstrap | | | # run
% ant run
The above is just one example of a valid "ant.properties" file. | |
< < | Following is an example of a JXTA project install script that will likely emerge to further streamline the afore mentione process: | > > | Following is an example of a JXTA project install script that will likely emerge to further streamline the afore mentioned process: | | |
<?xml version="1.0" encoding="utf-8"?> | | | % ant run
| |
< < | -- JamesTodd - 03 Sep 2003
| | | So HowToBuildUsingJBuilder? HowToBuildUsingNetBeans HowToBuildUsingJEdit? HowToBuildUsingEclipse | |
< < | -- HugoGarcia - 22 Sep 2003 |
|
<<O>> Difference Topic
BuildingJXTA
(7 - 23 Mar 2004 - Main.afisk)
|
| |
| META TOPICPARENT | name="WebHome" |
Included are all the steps required to obtain, build and run a working copy of the JXTA Platform. The prerequisites are:
- J2SDK 1.4+
- Ant 1.6+
| |
< < | Using Ant, obtaining, building and running most Core JXTA projects is as easy 1 2 3: | > > | Using Ant, obtaining, building and running most Core JXTA projects is as easy 1 2 3: | | |
# create work environment |
|
<<O>> Difference Topic
BuildingJXTA
(6 - 20 Mar 2004 - Main.gonzo)
|
| |
| META TOPICPARENT | name="WebHome" |
Included are all the steps required to obtain, build and run a working copy of the JXTA Platform. The prerequisites are:
- J2SDK 1.4+
| |
< < |
- Ant 1.5.1+
| > > |
- Ant 1.6+
| | | Using Ant, obtaining, building and running most Core JXTA projects is as easy 1 2 3: | | | The above is just one example of a valid "ant.properties" file. | |
> > | Following is an example of a JXTA project install script that will likely emerge to further streamline the afore mentione process:
<?xml version="1.0" encoding="utf-8"?>
<project name="jxta install" basedir="." default="install">
<property name="cvs.project" value="shell"/>
<property name="cvs.version" value=""/>
<property name="cvs.user" value="guest"/>
<property name="cvs.server" value="cvs.jxta.org"/>
<property name="cvs.directory" value ="${cvs.project}"/>
<property name="cvs.destination" value="."/>
<target name="install" description="project installation">
<cvs command="checkout -d ${cvs.directory}"
cvsRoot=":pserver:${cvs.user}@${cvs.server}:/cvs"
package="${cvs.project}"
tag="${cvs.version}"
dest="${cvs.destination}"/>
<ant antfile="build.xml"
dir="${cvs.destination}/${cvs.directory}/binding/java"
target="bootstrap"
inheritAll="false"/>
</target>
</project>
Taking into consideration the above script one can build and run a JXTA project as follows:
# create work environment
% mkdir projects
% cd projects
# procure installation script
% cp {install.xml} .
# install
% ant -f install.xml
# run
% cd {project}/binding/java
% ant run
The install script defaults can be overridden to manage any core JXTA project, eg:
% ant -Dcvs.project=myjxta2 -Dcvs.version=JXTA_2_2_1_STABLE -f install.xml
% cd myjxta2/binding/java
% ant run
| | | -- JamesTodd - 03 Sep 2003
|
|
<<O>> Difference Topic
BuildingJXTA
(5 - 24 Feb 2004 - Main.gonzo)
|
| |
| META TOPICPARENT | name="WebHome" |
Included are all the steps required to obtain, build and run a working copy of the JXTA Platform. The prerequisites are: | |
< < |
- J2SDK 1.3.1+
| > > |
- J2SDK 1.4+
| | |
- Ant 1.5.1+
Using Ant, obtaining, building and running most Core JXTA projects is as easy 1 2 3: |
|
<<O>> Difference Topic
BuildingJXTA
(4 - 31 Jan 2004 - Main.gonzo)
|
| |
| META TOPICPARENT | name="WebHome" |
Included are all the steps required to obtain, build and run a working copy of the JXTA Platform. The prerequisites are: | | | % mkdir projects
% cd projects
# obtain the source code | |
< < | % cvs -d :pserver:guest@jxta.org:/cvs co shell | > > | % cvs -d :pserver:guest@cvs.jxta.org:/cvs co shell | | | % cd shell/binding/java
# build
% ant bootstrap | | | % mkdir projects
% cd projects
# obtain the source code | |
< < | % cvs -d :pserver:guest@jxta.org:/cvs co -r JXTA_2_1_1_STABLE -d shell-JXTA_2_1_1_STABLE shell | > > | % cvs -d :pserver:guest@cvs.jxta.org:/cvs co -r JXTA_2_1_1_STABLE -d shell-JXTA_2_1_1_STABLE shell | | | % cd shell-JXTA_2_1_1_STABLE/binding/java
# build
% ant bootstrap | | | % mkdir projects
% cd projects
# obtain the source code | |
< < | % cvs -d :pserver:guest@jxta.org:/cvs co -r JXTA_2_1_1_STABLE -d shell-JXTA_2_1_1_STABLE shell | > > | % cvs -d :pserver:guest@cvs.jxta.org:/cvs co -r JXTA_2_1_1_STABLE -d shell-JXTA_2_1_1_STABLE shell | | | % cd shell-JXTA_2_1_1_STABLE/binding/java
# build
% ant -Dtag=JXTA_2_1_1_STABLE bootstrap | | | shell.dir=../../../shell
cms.dir=../../../cms" > ./.ant.properties
# obtain the source code | |
< < | % cvs -d :pserver:guest@jxta.org:/cvs co -r JXTA_2_1_1_STABLE -d shell-JXTA_2_1_1_STABLE shell | > > | % cvs -d :pserver:guest@cvs.jxta.org:/cvs co -r JXTA_2_1_1_STABLE -d shell-JXTA_2_1_1_STABLE shell | | | % cd shell-JXTA_2_1_1_STABLE/binding/java
# build
% ant -Dtag=JXTA_2_1_1_STABLE bootstrap |
|
<<O>> Difference Topic
BuildingJXTA
(3 - 22 Sep 2003 - Main.elhugo)
|
|
<<O>> Difference Topic
BuildingJXTA
(2 - 07 Sep 2003 - Main.gonzo)
|
| |
| META TOPICPARENT | name="WebHome" |
Included are all the steps required to obtain, build and run a working copy of the JXTA Platform. The prerequisites are: | | | Lastly, litterally all JXTA build properties can be overridden by placing a valid "ant.properties" file in any one or more of the following locations: | |
< < | {JXTA root}/.ant.properties (e.g. peer to shell)
{JXTA project}/.ant.properities (e.g. [JXTA root}/shell/binding/java/.ant.properties)
{user.home}/.ant.properties (e.g. ~/.ant.properties) | > > | [JXTA root]/.ant.properties (e.g. peer to shell)
[JXTA project]/.ant.properities (e.g. [JXTA root}/shell/binding/java/.ant.properties)
[user.home]/.ant.properties (e.g. ~/.ant.properties) | | |
The first option, in the "JXTA root," is preferable as it has a larget scope and is not necessarily mixed up with other user "dot" files. A more extreme example of checking out and building a "tagged" branch is as follows: | | | % echo "security.dir=../../../security
platform.dir=../../../platform
shell.dir=../../../shell | |
< < | cms.dir=../../../cms" > .ant.properties | > > | cms.dir=../../../cms" > ./.ant.properties | | | # obtain the source code
% cvs -d :pserver:guest@jxta.org:/cvs co -r JXTA_2_1_1_STABLE -d shell-JXTA_2_1_1_STABLE shell
% cd shell-JXTA_2_1_1_STABLE/binding/java |
|
<<O>> Difference Topic
BuildingJXTA
(1 - 03 Sep 2003 - Main.gonzo)
|
|
> > |
| META TOPICPARENT | name="WebHome" |
Included are all the steps required to obtain, build and run a working copy of the JXTA Platform. The prerequisites are:
- J2SDK 1.3.1+
- Ant 1.5.1+
Using Ant, obtaining, building and running most Core JXTA projects is as easy 1 2 3:
# create work environment
% mkdir projects
% cd projects
# obtain the source code
% cvs -d :pserver:guest@jxta.org:/cvs co shell
% cd shell/binding/java
# build
% ant bootstrap
# run
% ant run
Well, as easy as 1 2 3 4 ... but you get the idea.
The above example checks out a read-only local copy of the main branch (aka trunk) of the Shell project. Substituting the "guest" user with your JXTA Member ID enables you to check out a commiter (i.e. read-write) work space. Further, in order to build a "tagged" branch the following modifications are required:
# create work environment
% mkdir projects
% cd projects
# obtain the source code
% cvs -d :pserver:guest@jxta.org:/cvs co -r JXTA_2_1_1_STABLE -d shell-JXTA_2_1_1_STABLE shell
% cd shell-JXTA_2_1_1_STABLE/binding/java
# build
% ant bootstrap
# run
% ant run
An alternative, albeit untested, option is as follows (technically this should work):
# create work environment
% mkdir projects
% cd projects
# obtain the source code
% cvs -d :pserver:guest@jxta.org:/cvs co -r JXTA_2_1_1_STABLE -d shell-JXTA_2_1_1_STABLE shell
% cd shell-JXTA_2_1_1_STABLE/binding/java
# build
% ant -Dtag=JXTA_2_1_1_STABLE bootstrap
# run
% ant run
Lastly, litterally all JXTA build properties can be overridden by placing a valid "ant.properties" file in any one or more of the following locations:
{JXTA root}/.ant.properties (e.g. peer to shell)
{JXTA project}/.ant.properities (e.g. [JXTA root}/shell/binding/java/.ant.properties)
{user.home}/.ant.properties (e.g. ~/.ant.properties)
The first option, in the "JXTA root," is preferable as it has a larget scope and is not necessarily mixed up with other user "dot" files. A more extreme example of checking out and building a "tagged" branch is as follows:
# create work environment
% mkdir projects
% cd projects
# create .ant.properties
% echo "security.dir=../../../security
platform.dir=../../../platform
shell.dir=../../../shell
cms.dir=../../../cms" > .ant.properties
# obtain the source code
% cvs -d :pserver:guest@jxta.org:/cvs co -r JXTA_2_1_1_STABLE -d shell-JXTA_2_1_1_STABLE shell
% cd shell-JXTA_2_1_1_STABLE/binding/java
# build
% ant -Dtag=JXTA_2_1_1_STABLE bootstrap
# run
% ant run
The above is just one example of a valid "ant.properties" file.
-- JamesTodd - 03 Sep 2003 |
|