The Ant script doesn't modify the source during compilation, so that shouldn't be a problem. It does do some of the other things you describe, though - it creates the directory structure it needs in order to generate the binaries, and then (depending on the target you run) assembles them into JAR files, but that's it. The source code doesn't get touched.

Also, if you run the clean target, everything is restored to its original state.


On Aug 4, 2009, at 6:10 PM, Scott Lanham wrote:

It kind of helps :-)

The best way I can convey what I am looking for is to generally describe what
I do with a c++ project I am involved in.

For the project I might have a directory called /devel/someProject that contains the source files. When using cmake to build the project I would create another directory called /devel/someProject_build. Initially it is just
a blank directory. I change to this blank directory and type "cmake
/devel/someProject". Cmake will fill the /devel/someProject_build directory with a structure that is required for the build, then I run "make" in that same directory and the binaries are created. So there is never any worry that the original source directory is modified during a build. Also when I run make in the build directory after the initial run it always picks up changes from
/devel/someProject.

What I would like to do with Pivot is have a SVN source directory that is never modified except for svn updates and a separate build directory that I can run ant in that my project uses. At the moment I copy the SVN sources across
to a new location and run ant in the copy.

Cheers,

Scott.


On Wed, 5 Aug 2009 07:46:48 am Greg Brown wrote:
I'm not sure what you mean by "fill" the directory.

If you run "ant package", the build script will create a lib directory
containing all the JARs you need. For the tutorials, that includes:

pivot-core-1.3-incubating.jar
pivot-web-1.3-incubating.jar
pivot-wtk-1.3-incubating.jar
pivot-wtk-1.3-incubating.terra.jar

You can then put these files wherever you like. They just need to be
on your project's classpath.

Does that help?

On Aug 4, 2009, at 4:43 PM, Scott Lanham wrote:
Yes I successfully built Pivot.

What I want to do is go to a blank directory and somehow invoke ant
to fill
that directory rather than modifying the original project source. At
the
moment I am just doing a straight up copy of the whole project and
running the
build in the copy.

On Tue, 4 Aug 2009 09:52:10 pm Greg Brown wrote:
How are you currently invoking Ant? Are you able to build the project
at all?

On Aug 3, 2009, at 10:51 PM, Scott Lanham wrote:
Hi,

I am a complete novice when it comes to using ant. Is there a way I
can tell
ant to build Pivot in a different directory from the source?

Thanks,

Scott.


Reply via email to