ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Sinnamon <sinna...@usq.edu.au>
Subject Cannot create jar archive ... no files were included
Date Thu, 22 Mar 2001 17:28:53 GMT
Dear ant users,

Can someone spot the problem here?

Hear are the relvant parts of my build.xml file:

 <!--
=================================================================== -->
  <!-- Initialization
target                                               -->
  <!--
=================================================================== -->
  <target name="init">
    <tstamp/>
    <property name="Name" value="MULTIPI"/>
    <property name="name" value="multipi"/>
    <property name="version" value="0.1.1"/>
    <property name="year" value="2001"/>

    <echo message="----------- ${Name} ${version} [${year}]
------------"/>

    <property name="build.compiler" value="classic"/>
    <property name="debug" value="off"/>
    <property name="optimize" value="off"/>
    <property name="deprecation" value="on"/>

    <property name="src.dir" value="./src"/>
    <property name="junit.dir" value="./junit"/>
    <property name="build.dir" value="./build"/>
    <property name="build.classes" value="${build.dir}/classes"/>
    <property name="build.dest" value="./build/classes"/>
    <property name="build.javadocs" value="./build/apidocs"/>
    <property name="dist.dir" value="./dist"/>
    <property name="dist.lib" value="${dist.dir}/lib"/>


    <filter token="year" value="${year}"/>
    <filter token="version" value="${version}"/>
    <filter token="date" value="${TODAY}"/>
    <filter token="log" value="true"/>
    <filter token="verbose" value="true"/>

  </target>

  <!--
=================================================================== -->
  <!-- Prepares the build
directory                                        -->
  <!--
=================================================================== -->
  <target name="prepare" depends="init">
    <mkdir dir="${build.dir}"/>
    <mkdir dir="${build.classes}"/>
    <mkdir dir="${dist.dir}"/>
    <mkdir dir="${dist.lib}"/>
  </target>

  <!--
=================================================================== -->
  <!-- Compiles the source
directory                                       -->
  <!--
=================================================================== -->
  <target name="compile" depends="prepare">
    <javac srcdir="${src.dir}"
           destdir="${build.dest}"
           debug="${debug}"
           optimize="${optimize}"
           excludes="org/multipitest/**">
           <classpath>
           <pathelement path="/usr/lib/j2sdk1.3/lib/tools.jar"/>
           <pathelement path="/usr/share/java/xerces.jar"/>
           <pathelement path="/usr/local/share/java/jdom.jar"/>
           <pathelement path="/usr/local/share/java/junit.jar"/>
           </classpath>
           </javac>
  </target>

  <target name="package" depends="compile">
    <jar jarfile="${dist.lib}/multipi.jar"
         basedir="${build.classes}"
         includes="${build.classes}/**"
         excludes="${build.classes}/org/multipitest/*"
         whenempty="fail"/>
   </target>

... here are the source *.class files, from which I want to create a
.jar file:

build
build/classes
build/classes/org
build/classes/org/multipi
build/classes/org/multipi/MultipiException.class
build/classes/org/multipi/MsgQueue.class
build/classes/org/multipi/Production.class
build/classes/org/multipi/Multipi.class
build/classes/org/multipi/Message.class
build/classes/org/multipi/MsgHeader.class
build/classes/org/multipi/EmptyMsg.class
build/classes/org/multipi/Team.class
build/classes/org/multipi/MsgHandler.class
build/classes/org/multipi/StringMsg.class
build/classes/org/multipi/Actor.class
build/classes/org/multipi/Actor$Agent.class
build/classes/org/multipi/Actor$Bid.class
build/classes/org/multipi/Actor$Bid$MsgQOutHandler.class
build/classes/org/multipi/Actor$BidMsgBoard.class
build/classes/org/multipi/Actor$AgentMsgBoard.class
build/classes/org/multipi/Actor$BidsReadyTable.class

..here is the target file jar file (created, in this case, by using

'jar' on the command line, rather than by using ant):

dist/lib/multipi.jar

When I enter './build.sh package', I get the following output:

JDOM Build System
-------------------

Building with classpath :

Starting Ant...

Searching for build.xml ...
Buildfile: /home/sinnamon/multipi/build.xml

init:
----------- MULTIPI 0.1.1 [2001] ------------

prepare:

compile:

package:

BUILD FAILED

/home/sinnamon/multipi/build.xml:110: Cannot create jar archive \

/home/sinnamon/multipi/dist/lib/multipi.jar: no files were included.

Total time: 2 seconds



... Please let me know if any further information would help. 

TIA,

James

--
James Sinnamon  sinnamon@usq.edu.au

ph 07 46315566,  0412 319669
PO Box 517 Darling Heights QLD 4350

Mime
View raw message