java.net: Wiki

The Source for Java Technology Collaboration


 <<O>>  Difference Topic BuildingJXTA (21 - 04 Dec 2007 - Main.MikeDuigou)
Line: 1 to 1
 
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:
Line: 30 to 30
  % ant
Changed:
<
<
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)
Line: 1 to 1
 
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:
Changed:
<
<
  1. JDK 5.0
>
>
  1. Java SE JDK 5.0
 
  1. Ant 1.6.3+
Changed:
<
<
  1. Subversion (cvs client)
>
>
  1. 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)
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Changed:
<
<
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:
 
Changed:
<
<
  1. J2SDK 1.4.2+
  2. Ant 1.6+
  3. CVS (cvs client)
>
>
  1. JDK 5.0
  2. Ant 1.6.3+
  3. Subversion (cvs client)
 
Changed:
<
<
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
Changed:
<
<
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:
 
Changed:
<
<

<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
 
Changed:
<
<
Lastly, execute the bootstrapper as follows:
>
>
Lastly, and this really is the last step, execute the ant scripts to build the core and shell:
 
Changed:
<
<
% 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:

Deleted:
<
<
% cd shell/binding/java
  % ant run
Changed:
<
<
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 :
 
Changed:
<
<
% ant -f bootstrap.xml
>
>
% svn update jxta-jxse jxse-shell
 

HowToBuildUsingJBuilder?
HowToBuildUsingNetBeans
HowToBuildUsingJEdit?

Added:
>
>
BuildingJXTAUsingMaven
 HowToBuildUsingEclipse

-- JamesTodd - 19 Jul 2004


 <<O>>  Difference Topic BuildingJXTA (18 - 01 May 2005 - Main.gonzo)
Line: 1 to 1
 
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:
Line: 13 to 13
  % cd ~/jxta
Deleted:
<
<
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:
Line: 47 to 45
  socksproxyport="${socks.proxyPort}"/>
Added:
>
>
<exec executable="cvs" failifexecutionfails="true" outputproperty="cvs.ignore"/>
 

 <<O>>  Difference Topic BuildingJXTA (17 - 01 May 2005 - Main.gonzo)
Line: 1 to 1
 
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:

  1. J2SDK 1.4.2+
  2. Ant 1.6+
Added:
>
>
  1. CVS (cvs client)
 With the above prerequisites installed and available in your system environment, create a JXTA workspace:
Line: 77 to 78
 After which the newly created MyJXTA application can be invoked as follows:
Changed:
<
<
% cd myjxta2/binding/java
>
>
% cd myjxta2
  % ant run

 <<O>>  Difference Topic BuildingJXTA (16 - 13 Jan 2005 - Main.gonzo)
Line: 1 to 1
 
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:
Line: 14 to 14
 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.
Changed:
<
<
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"?>

 <<O>>  Difference Topic BuildingJXTA (15 - 19 Jul 2004 - Main.gonzo)
Line: 1 to 1
 
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:
Line: 12 to 12
  % cd ~/jxta
Changed:
<
<
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:
Line: 113 to 113
 HowToBuildUsingNetBeans
HowToBuildUsingJEdit?
HowToBuildUsingEclipse
Added:
>
>
-- JamesTodd - 19 Jul 2004

 <<O>>  Difference Topic BuildingJXTA (14 - 21 Jun 2004 - Main.gonzo)
Line: 1 to 1
 
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:
Line: 86 to 86
 
property description default values
cvs.project project name shell security, platform, shell, cms, and myjxta2
Changed:
<
<
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

 <<O>>  Difference Topic BuildingJXTA (13 - 15 Jun 2004 - Main.gonzo)
Line: 1 to 1
 
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:
Line: 91 to 91
 
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
Added:
>
>
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:


 <<O>>  Difference Topic BuildingJXTA (12 - 27 May 2004 - Main.gonzo)
Line: 1 to 1
 
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:
Line: 17 to 17
 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:
Changed:
<
<
>
>
 

Changed:
<
<
>
>
<get src="${http.url}" dest="./install.xml" usetimestamp="true"/>

<ant antfile="install.xml" dir="." inheritAll="false"/>

 
Changed:
<
<
>
>
 
Added:
>
>
<setproxy socksproxyhost="${socks.proxyHost}" socksproxyport="${socks.proxyPort}"/>
 

 <<O>>  Difference Topic BuildingJXTA (11 - 22 Apr 2004 - Main.f1fe)
Line: 1 to 1
 
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:
Line: 12 to 12
  % cd ~/jxta
Changed:
<
<
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:

 <<O>>  Difference Topic BuildingJXTA (10 - 19 Apr 2004 - Main.gonzo)
Line: 1 to 1
 
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:
Line: 67 to 67
 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:

Changed:
<
<
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)
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Changed:
<
<
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:
 
Changed:
<
<
  1. J2SDK 1.4.1+ (1.4.2 prefered)
  2. Ant 1.5.4+ (1.6+ prefered)
>
>
  1. J2SDK 1.4.2+
  2. Ant 1.6+
 
Changed:
<
<
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:
 
Changed:
<
<
# 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
 
Changed:
<
<
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.
 
Changed:
<
<
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:
 
Changed:
<
<
# 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
>
>

 
Changed:
<
<
An alternative, albeit untested, option is as follows (technically this should work):
>
>
Lastly, execute the bootstrapper as follows:
 
 
Changed:
<
<
# 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
 
Changed:
<
<
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:
 
Changed:
<
<
[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
Changed:
<
<
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:
 
Changed:
<
<
>
>
% ant -f install.xml
 
Changed:
<
<
>
>
This build process can be leveraged, in turn, by any JXTA application. The MyJXTA project uses the process to great advantage as follows:
 
Changed:
<
<
>
>
  % ant -Dcvs.project=myjxta2 -f bootstrap.xml
 
Changed:
<
<
<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:
 
Changed:
<
<
<ant antfile="build.xml" dir="${cvs.destination}/${cvs.directory}/binding/java" target="bootstrap" inheritAll="false"/>
>
>
  % cd myjxta2/binding/java
  % ant run
 
Changed:
<
<
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:

 
Changed:
<
<
# 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
 
Changed:
<
<
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:
 
Changed:
<
<
% ant -Dcvs.project=myjxta2 -Dcvs.version=JXTA_2_2_1_STABLE -f install.xml % cd myjxta2/binding/java % ant run
>
>
% ant -f bootstrap.xml
 
Changed:
<
<
So HowToBuildUsingJBuilder? HowToBuildUsingNetBeans HowToBuildUsingJEdit? HowToBuildUsingEclipse
>
>
HowToBuildUsingJBuilder?
HowToBuildUsingNetBeans
HowToBuildUsingJEdit?
HowToBuildUsingEclipse

 <<O>>  Difference Topic BuildingJXTA (8 - 24 Mar 2004 - Main.bondolo)
Line: 1 to 1
 
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:
Changed:
<
<
  1. J2SDK 1.4+
  2. Ant 1.6+
>
>
  1. J2SDK 1.4.1+ (1.4.2 prefered)
  2. Ant 1.5.4+ (1.6+ prefered)
 Using Ant, obtaining, building and running most Core JXTA projects is as easy 1 2 3:
Line: 29 to 29
  % mkdir projects % cd projects # obtain the source code
Changed:
<
<
% 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
Line: 44 to 44
  % mkdir projects % cd projects # obtain the source code
Changed:
<
<
% 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
Changed:
<
<
% ant -Dtag=JXTA_2_1_1_STABLE bootstrap
>
>
% ant -Dtag=JXTA_2_2_1_00 bootstrap
  # run % ant run
Line: 72 to 72
 shell.dir=../../../shell cms.dir=../../../cms" > ./.ant.properties # obtain the source code
Changed:
<
<
% 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
Changed:
<
<
% 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.

Changed:
<
<
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"?>
Line: 134 to 134
  % ant run
Deleted:
<
<
-- JamesTodd - 03 Sep 2003


 So HowToBuildUsingJBuilder? HowToBuildUsingNetBeans HowToBuildUsingJEdit? HowToBuildUsingEclipse
Deleted:
<
<
-- HugoGarcia - 22 Sep 2003

 <<O>>  Difference Topic BuildingJXTA (7 - 23 Mar 2004 - Main.afisk)
Line: 1 to 1
 
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:

  1. J2SDK 1.4+
  2. Ant 1.6+
Changed:
<
<
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)
Line: 1 to 1
 
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:

  1. J2SDK 1.4+
Changed:
<
<
  1. Ant 1.5.1+
>
>
  1. Ant 1.6+
 Using Ant, obtaining, building and running most Core JXTA projects is as easy 1 2 3:
Line: 82 to 82
 The above is just one example of a valid "ant.properties" file.
Added:
>
>
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)
Line: 1 to 1
 
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:
Changed:
<
<
  1. J2SDK 1.3.1+
>
>
  1. J2SDK 1.4+
 
  1. 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)
Line: 1 to 1
 
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:
Line: 12 to 12
  % mkdir projects % cd projects # obtain the source code
Changed:
<
<
% 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
Line: 29 to 29
  % mkdir projects % cd projects # obtain the source code
Changed:
<
<
% 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
Line: 44 to 44
  % mkdir projects % cd projects # obtain the source code
Changed:
<
<
% 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
Line: 72 to 72
 shell.dir=../../../shell cms.dir=../../../cms" > ./.ant.properties # obtain the source code
Changed:
<
<
% 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)
Line: 1 to 1
 
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:
Line: 83 to 83
 The above is just one example of a valid "ant.properties" file.

-- JamesTodd - 03 Sep 2003

Added:
>
>

So HowToBuildUsingJBuilder? HowToBuildUsingNetBeans HowToBuildUsingJEdit? HowToBuildUsingEclipse

-- HugoGarcia - 22 Sep 2003


 <<O>>  Difference Topic BuildingJXTA (2 - 07 Sep 2003 - Main.gonzo)
Line: 1 to 1
 
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:
Line: 55 to 55
 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:
Changed:
<
<
{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:

Line: 70 to 70
  % echo "security.dir=../../../security platform.dir=../../../platform shell.dir=../../../shell
Changed:
<
<
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)
Line: 1 to 1
Added:
>
>
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:

  1. J2SDK 1.3.1+
  2. 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


Topic BuildingJXTA . { View | Diffs r21 < r20 < r19 < r18 | More }
 XML java.net RSS