Below is the sample script for the three tasks mentioned
<war basedir = "D:\CVSWORKING\AddressChange" destfile = "C:\AC.war" filesonly =
"false" webxml = "D:\CVSWORKING\AddressChange\WEB-INF\web.xml"/>
ear compress = "true" appxml = "D:\CVSWORKING\AddressChange\WEB-INF\web.xml" filesonly
= "false" destfile = "C:\Documents and Settings\vijay\Desktop\AC.ear" basedir =
"D:\CVSWORKING\AddressChange">
<fileset dir = "D:\CVSWORKING\AddressChange\dialogs" includes = "*.*"/>
<fileset dir = "D:\CVSWORKING\AddressChange\grammar" includes = "*.*"/>
<fileset dir = "D:\CVSWORKING\AddressChange\prompts" includes = "*.*"/>
</ear>
<jar destfile = "C:\Documents and Settings\vijay\Desktop\test.jar" basedir = "c:\"
filesonly = "true" includes = "*.class,*.java"/>
Use loadproperties task, to load a property file, which contains
something like
earfile=C:\WSAD5.0\WORKSPACE\ ...
warfile=C:\ ...
jarfile=C:\ ...
Create a target with first task is loadproperties like
<loadproperties srcfile = "C:\myproperties.txt"/>
after which create the jar,war,ear tasks, in which u can use the
above properties, say
<jar destfile = ${jarfile} ... >
unless u get the hang of online ANT documentation, u might land in trouble
-----Original Message-----
From: priya pallavi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 17, 2004 1:06 PM
To: Ant Users List
Subject: RE: creating .ear using ANT
Iam new to ANT.I learned ANT to some extent and needs to more abt that in 2,3 days due
to my deadlines at work.
Vijay Prasanna <[EMAIL PROTECTED]> wrote:
Use loadfile or loadproperties task to get the absolutepath, & hope u r aware of other
ant tasks (EAR,WAR,JAR) and create the build xml file with these three tasks.
-----Original Message-----
From: priya pallavi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 17, 2004 12:15 PM
To: Ant Users List
Subject: Re: creating .ear using ANT
some one plzzz... suggest me
priya pallavi
wrote:Hello Friends,
Iam working on a J2EE application called BMS.I have 3 Modules In my application.
1.BmsEAR
2.BmsEJB
3.BmsWeb
I need to create
1..jar file with code from BmsEJB Module
2..war file with code from BmsWeb Module
3..ear file with .jar and .war
As i have only one build.xml under BmsEAR Module , how can i access the other modules
using ANT script.Right now iam creatting .war by using path like
C:\WSAD_WORKSPACES\Secondworkspace\BmsWeb\WebContent for testing purpose.But i think
we shouldn't use absolute path.
Some one please help me how to access the oEJB and WEB modules for creating .jar and
.war respectively
Thanks In Advance
Priya.
Thanks Again
Priya
---------------------------------
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online
---------------------------------
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]