ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andy susanto <ibsolut...@gmail.com>
Subject Re: run a jar from ant
Date Fri, 19 Feb 2010 21:59:44 GMT
hai,

i would like run a jarfile. my jar file need an external jar, when i added
         <attribute name="Class-Path" value="./common-ibs.jar;./dfc.jar"/>
inside manifest, when i try to run it from a command line, i got an error.

cause i still a newbies to using an ant, actual i am always using an
IDE to run my application

-- 
Regrads,

Andy Susanto,S.Kom
======================================================
CV : http://www.linkedin.com/pub/andy-susanto/7/533/baa



On Wed, Jan 27, 2010 at 6:20 PM, Karsten Wutzke <kwutzke@web.de> wrote:
> Don't get me wrong, but what is your question?
>
> Karsten
>
>> hai,
>>
>> i am a newbies with ant.
>>
>> i would like run my jar file from ant. but my jar need another jar,
>> below this my ant code :
>>
>> <target name="jar" depends="init" >
>>         <jar destfile="${jar.dir}/${ant.project.name}.jar"
>> basedir="${classes.dir}" excludes="">
>>      <manifest>
>>           <attribute name="Main-Class" value="com.ibs.compare.ChevronTool"
/>
>>         <attribute name="Class-Path" value="./common-ibs.jar;./dfc.jar"/>
>>      </manifest>
>>       </jar>
>>     </target>
>>
>>       <target name="run" depends="jar">
>>               <java jar="${jar.dir}/${ant.project.name}.jar" fork="true"/>
>>        </target>
>>
>>
>> all jar that will be needed i put at same folder with my output jar
>>
>>
>> --
>> Regards,
>>
>> Andy Susanto,S.Kom
>> ======================================================
>> CV : http://www.linkedin.com/pub/andy-susanto/7/533/baa
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>
>
> ____________________________________________________________________
> WEB.DE MillionenKlick: Kostenlos tippen, täglich 1 Million gewinnen!
> http://produkte.web.de/go/07/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message