Ignore:
Timestamp:
Mar 20, 2008, 8:27:01 AM (14 years ago)
Author:
Nicklas Nordborg
Message:

References #103: Create example extensions

Made build process simpler.

Location:
extensions/net.sf.basedb.examples/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.examples/trunk

    • Property svn:ignore set to
      build
      dist
      package
      .project
      .classpath
  • extensions/net.sf.basedb.examples/trunk/build.xml

    r637 r638  
    22<project
    33  name="ExtensionExamples"
    4   default="dist"
     4  default="build"
    55  basedir=".">
    66
     
    1111  <property name="build" location="build" description="Location of compiled files" />
    1212  <property name="dist" location="dist" description="Directory where distribution should be created" />
    13   <property name="package" location="package" description="Directory where packaged distribution files are created"/>
     13  <property name="jar.name" value="${name}.jar" description="Name of JAR file with the extensions." />
     14  <property name="tar.prefix" value="${name}-${version}" description="Prefix of .tar.gz file for download." />
     15  <property name="tar.name" value="${tar.prefix}.tar.gz" description="Full name of .tar.gz file for download." />
    1416  <property name="javac.arg" value="-Xlint:unchecked" />
    1517  <property name="javac.source" value="1.5" />
     
    3335      <fileset dir="${build}" defaultexcludes="no" />
    3436      <fileset dir="${dist}" defaultexcludes="no" />
    35       <fileset dir="${package}" defaultexcludes="no" />
     37      <fileset file="${jar.name}" />
     38      <fileset file="${tar.name}" />
    3639    </delete>
    3740  </target>
     
    4548      <fileset dir="." includes="src/**,resources/**,META-INF/**" />
    4649      <fileset dir="." includes="lib/compile/readme.txt" />
     50      <fileset file="${jar}" />
    4751    </copy>
    4852  </target>
     
    5357    description="Create binary distribution package"
    5458    >
    55     <property name="tar.prefix" value="${name}-${version}" />
    56     <mkdir dir="${package}" />
    5759    <tar
    58       destfile="${package}/${tar.prefix}.tar.gz"
     60      destfile="${tar.name}"
    5961      longfile="gnu"
    6062      compression="gzip"
     
    8385    description="Compiles the plugin and put in jar"
    8486    >
    85     <property name="jar" value="${name}.jar" />
    8687    <mkdir dir="${build}" />
    8788    <javac
     
    101102    </copy>
    102103    <jar
    103       jarfile="${dist}/${jar}"
     104      jarfile="${jar.name}"
    104105      basedir="${build}"
    105106      >
Note: See TracChangeset for help on using the changeset viewer.