ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pawanraj Sadhwani" <>
Subject RE: Problem with images
Date Fri, 04 Jun 2004 09:42:50 GMT
One bit of "mistake" that i found <though it "seems" unrelated with your
problem> is

 	<unzip dest="$build">
 		<fileset dir="${lib}">
 			<include name="*.jar"/>

***************** the first line it should be <unzip dest="${build}">
instead of "$build"

This might be intended ofcourse... or a typo.. but try checking it out.. :-)


-----Original Message-----
From: Eirin Ostvold Blastrud []
Sent: Friday, June 04, 2004 2:55 PM
To: Ant Users List
Subject: Problem with images


I'm trying to create a jar-file with ant.
The build is successful, but the application will not start because it
can't find
the .gif files it needs. I have looked at the jar-file, and it looks
like the gif-files
are in the right place.
Does anybody notice anything strange with this build-file?

<?xml version="1.0" encoding="iso-8859-1"?>
<project name="Scrappy" default="ddo" basedir=".">
   <!-- set global properties for this build -->
   <property name="src" location="ddo"/>
   <property name="build" location="build"/>
   <property name="dist"  location="dist"/>
   <property name="lib" location="lib"/>
   <property name="images" location="gui"/>

   <target name="init">
     <mkdir dir="${build}"/>

   <target name="compile" depends="init" description="compile the
	<!-- Compile the java code from ${src} into ${build} -->
     <javac srcdir="${src}" destdir="${build}"/>

   <target name="copy" depends="compile">
	<!-- copy images necessary for the application -->
     <copy todir="${build}">
		<fileset dir="${images}"/>

	<!-- copy files necessary for the application-->
	<copy todir="${build}">
		<fileset dir="${lib}"/>

	<unzip dest="$build">
		<fileset dir="${lib}">
			<include name="*.jar"/>

   <target name="dist" depends="copy" description="generate the
distribution" >
     <!-- Create the distribution directory -->
  	<mkdir dir="${dist}"/>
     <jar manifest="manifest" jarfile="${dist}/Scrappy-${DSTAMP}.jar"

   <!-- Delete the ${build} and ${dist} directory trees -->
   <target name="clean" description="clean up" >
	<delete dir="${build}"/>
     <delete dir="${dist}"/>




To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message