Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dos command to ant target

Status
Not open for further replies.

raf35

Programmer
Mar 6, 2005
3
0
0
US
Hello,

I am a newbie to ant and trying to use ant build tool and translate this command line to ant target. Any help is appreciated.

The command is:
java com.comanage.truesource.ot.mof2foo.MofCompiler com.comanage.truesource.ot.mof2foo.WrapperGen -harshOverride -internal -sourcepath "%JAVATOP%";"c:\sundesis\200607-cingular\rimschema" -filepath . -files *.mof


Thanks,
raf35
 
Tim,

This is what I have so far


<project name="Cingular" basedir="." default="init">

<property name="src.dir" value="cingular/schema"/>

<property name="build.dir" value="release"/>
<property name="classes.dir" value="${build.dir}/classes"/>
<property name="jar.dir" value="${build.dir}/packages"/>
<property name="CollectorTop.dir" value="$(basedir)"/>
<property name="JAVATOP.dir" value="C:\WINDOWS\ccm_wa\ismdb\Source"/>
<property name="main-class" value="rimschema.cingular"/>



<target name="clean">
<delete dir="${build.dir}"/>
</target>

<target name="init">
<mkdir dir="${classes.dir}"/>
<java classname="com.comanage.truesource.ot.mof2foo.MofCompiler">
<arg value=" com.comanage.truesourcee.ot.mof2foo.WrapperGen"/>
<arg value="-harshOverride -internal -sourcepath"/>
<arg path="${JAVATOP.dir};${CollectorTop.dir}"/>
<arg value="-filepath srcdir=${src.dir} -files *.mof"/>
</java>
</target>

</project>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top