You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Sabahat Adil <Sa...@wnsgs.com> on 2007/07/06 04:35:14 UTC
Converting maven.xml to build.xml
Hi All,
Below is a goal written in maven.xml of maven 1.0.2. I want to convert
the below goal in ant.
How can I do that?
<goal name="config" description="This updates config files by the values
specified in user.tdd and env.tdd as referred in user.tdd">
<ant:taskdef name="fmpp"
classname="fmpp.tools.AntTask">
<ant:classpath>
<ant:path
refid="maven.dependency.classpath"/>
<ant:pathelement
path="${maven.build.dest}"/>
<ant:pathelement
path="${maven.build.dir}/test-classes"/>
<ant:pathelement
path="${basedir}/resources"/>
</ant:classpath>
</ant:taskdef>
<!-- Configures properties files -->
<fmpp
outputRoot="src/conf"
sourceRoot="src/config-mgmt/templates/properties"
dataRoot="src/config-mgmt/data"
data="tdd(user.tdd)"/>
<!-- Configures Spring files. This could also be
done by putting
both sets of files in one directory, but wanted to show -->
<fmpp
outputRoot="src/conf"
sourceRoot="src/config-mgmt/templates/spring"
dataRoot="src/config-mgmt/data"
data="tdd(user.tdd)"/>
<!-- Configures actionscript source files -->
<fmpp
outputRoot="src/flex"
sourceRoot="src/config-mgmt/templates/as"
dataRoot="src/config-mgmt/data"
data="tdd(user.tdd)"/>
<!-- Configures flex for VB application-->
<fmpp
outputFile="src/vb/eCloserAdminUtility/bin/version.xml"
sourceFile="src/config-mgmt/templates/as/version.xml"
dataRoot="src/config-mgmt/data"
data="tdd(user.tdd)"/>
<!-- Configures flex server files -->
<fmpp
outputRoot="src/webapp"
sourceRoot="src/config-mgmt/templates/webapp"
dataRoot="src/config-mgmt/data"
data="tdd(user.tdd)"/>
<!-- Configures build files -->
<fmpp
outputRoot="src/build"
sourceRoot="src/config-mgmt/templates/build"
dataRoot="src/config-mgmt/data"
data="tdd(user.tdd)"/>
<!-- Configures flexcompiler files -->
<fmpp
outputRoot="flexcompiler"
sourceRoot="src/config-mgmt/templates/flexcompiler"
dataRoot="src/config-mgmt/data"
data="tdd(user.tdd)"/>
<!-- Creating ecloser.htm file for appending
unique tag number to the query string for SWF caching -->
<fmpp
outputRoot="src/flex"
sourceRoot="src/config-mgmt/templates/flex/precompile"
dataRoot="src/config-mgmt/data"
data="tdd(user.tdd)"/>
</goal>
Thanks & Regards
Sabahat
Disclaimer:
-----------------------------------------------------------------
This email and any files transmitted with it may be confidential and intended solely
for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender.
The recipient should check this email and any attachments for the presence of viruses
and the company accepts no liability for any damage caused by the same.
Please note that any views or opinions presented in this email are those of the author
and do not necessarily represent those of WNS Group.
-----------------------------------------------------------------