aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes How to use the Ant build in v3 without a custom build.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How to use the Ant build in v3 without a custom build.xml" Watch "How to use the Ant build in v3 without a custom build.xml" New topic
Author

How to use the Ant build in v3 without a custom build.xml

David Yutzy
tumbleweed and gunslinger
Ranch Hand

Joined: Jun 29, 2001
Posts: 192
I noticed in v3 there is a way to build a project without a custom Ant build.xml, but cannot seem to get the files I need compiled working properly to be included in the .war.

Then, it gets even more difficult trying to do .ear files.

I'm assuming that to do this, a cusotm build.xml is needed anyway...
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
I'm not sure in my answer ....

::: build war file in build.xml :::


<?xml version"1.0"?>
---
<-target name="BuildWar">
<-jar jarfile="${dist.dir}/testWar.war">
<-fileset dir="${target.classes.dir}">
<-include name="com/**"/>
<-/fileset>
<-manifest>
<-attribute name="Test-Version" value="${test-version}"/>
<-/manifest>
<-/jar>
<-/target>

[ June 24, 2004: Message edited by: somkiat puisungnoen ]

[ June 24, 2004: Message edited by: somkiat puisungnoen ]
[ June 24, 2004: Message edited by: somkiat puisungnoen ]

SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
I'm not sure in my answer ....

::: build war file in build.xml :::

Bill Dudney
Author
Ranch Hand

Joined: Sep 05, 2003
Posts: 234
Hi David,

Eclipse has always had the ability to build your project without ant. However I don't think even in 3.0 that you can build a j2ee app without ant or a plugin.

Hope this helps!


TTFN,<br /> <br />-bd-<br /> <br /><a href="http://www.amazon.com/exec/obidos/ASIN/0471449156/qid=1064343733/sr=2-1/ref=sr_2_1/002-8375300-3666449" target="_blank" rel="nofollow">Jakarta Pitfalls</a> | <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0471146153/qid=1064343733/sr=1-2/ref=sr_1_2/002-8375300-3666449?v=glance&s=books" target="_blank" rel="nofollow">J2EE AntiPatterns</a> | <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0471462071/qid=1064343733/sr=1-3/ref=sr_1_3/002-8375300-3666449?v=glance&s=books" target="_blank" rel="nofollow">Mastering JavaServer Faces</a> | <a href="http://bill.dudney.net/roller/page/bill" target="_blank" rel="nofollow">Blog</a> | <a href="http://www.jroller.com/page/BillDudney" target="_blank" rel="nofollow">Eclipse Blog</a> | <a href="http://www.sourcebeat.com/TitleAction.do?id=2" target="_blank" rel="nofollow">Eclipse 3 Live</a>
David Yutzy
tumbleweed and gunslinger
Ranch Hand

Joined: Jun 29, 2001
Posts: 192
Gah...

That's not at all what I was looking for, let me rephrase the question.

In v3.x of Eclipse, when I click on a build.properties file, I get a dialog that specifies an interface where I can select which files/folders to include in the build, etc. Even when I right-click on the file, there are options to:

* Ant Build
* Ant Build...

The one with the "..." is what i normally run using my build.xml, the other one gives the interface I referenced above. After using Ant for some time, I'm comfortable modifying the XML, but if I could just checkoff the files/folders I want to include, that would be even better!
 
 
subject: How to use the Ant build in v3 without a custom build.xml