File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes ant against build.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ant against build.xml" Watch "ant against build.xml" New topic
Author

ant against build.xml

Kevin Knowles
Ranch Hand

Joined: Dec 29, 2002
Posts: 45
How do you use ant "against" a build.xml?
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
Could you be a little more specific? Are you referring to how to use Ant with a file not called build.xml?


Matthew Phillips
Kevin Knowles
Ranch Hand

Joined: Dec 29, 2002
Posts: 45
If I'm given the build.xml file and I want to compress my project files into a .jar file.?
Tina Coleman
Ranch Hand

Joined: Dec 12, 2001
Posts: 150
Does the build.xml file have a target within that will jar up your project files? If so, assuming you've got Ant installed on your computer, go to the directory where the build.xml file is and type:
ant [jartarget]
Ant assumes that it's going against a build.xml file.
Kevin Knowles
Ranch Hand

Joined: Dec 29, 2002
Posts: 45
What could be causing the "out of environment space" and "bad file" messages?
Michael Bronshteyn
Ranch Hand

Joined: Mar 26, 2002
Posts: 85
You can certainly use ant to build a jar file ( I know from my experience ). There is probably something else going on with your system, what causes errors. Try to set a small project with one or two files and build jar using them. That will give you an idea on how to use ant to build a jar file.


Michael
SCJP2
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
When I was running Windows 98, I would receive "out of environment space" every time I tried to use Ant. My solution was to change operating systems.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Your choices are:
1) Bandaid the problem
Put this line in your config.sys:

Also, check out WinOne.
2) Solve your problem:
Upgrade to Windows 2000/XP. Windows 98 is not a good OS for development work.
[ January 05, 2003: Message edited by: Chris Mathews ]
Robert Troshynski
Greenhorn

Joined: Jan 11, 2002
Posts: 16
Actually, in general, an "out of environment space" error usually results from an initial memory setting on the DOS box.
For WinME, I changed the initial value from 'Auto' to 4096 this way:
(1) Bring up a DOS box
(2) Right click on the title bar
(3) Select 'Properties' from the drop-down menu(4) Select the 'Memory' tab
(5) On the drop-down list for the 'Initial Environment', change that value from 'Auto' to 4096
Now, ever time that you open up a DOS box, your initial memory setting will be 4096. That should take care of any 'Out of environment space' problems.
Robert Troshynski


Robert Troshynski
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ant against build.xml
 
Similar Threads
Tool to build ANT or MAVEN scripts
Web app deployment model depends on build.xml? (Lomboz)
Building Project using build.xml
help needed in ant
Eclipse with Ant