Sophie

Sophie

distrib > Mageia > 2 > i586 > by-pkgid > 902a317a68a0a47a0e6b5c58eaaaf300 > files > 1

jing08-0.1-0.20081028.1.mga2.src.rpm

<project name="Jing" default="dist" basedir=".">
    <description>
Jing, a validator for RELAX NG implemented in Java. 
This is written on top of SAX2.
    </description>
  <!-- set global properties for this build -->
  <property name="version" value="20081028"/>
  <property name="src" location="src"/>
  <property name="exasrc" location="example"/>
  <property name="build" location="build"/>
  <property name="exabuild" location="example"/>
  <property name="dist"  location="dist"/>
  <property name="javadoc" location="javadoc"/>
  <property name="javac.debug" value="true"/>
  <path id="project.cp">
    <pathelement location="${build}"/>
  </path>
  <target name="init">
    <!-- Create the build directory structure used by compile -->
    <mkdir dir="${build}"/>
  </target>

  <target name="compile" depends="init"
        description="compile the source " >
	  <!-- Compile the java code from ${src} into ${build}  1.4-->
    <javac srcdir="${src}" destdir="${build}" debug="${javac.debug}" source="1.5">
    </javac>
    <copy todir="${build}">
      <fileset dir="${src}">
        <include name="**/resources/*"></include>
        <include name="META-INF/services/*"></include>
      </fileset>
    </copy>
  </target>
  <target name="dist" depends="compile"
        description="generate the distribution" >
    <!-- Create the distribution directory -->
    <mkdir dir="${dist}/lib"/>

    <jar jarfile="${dist}/lib/jing-${version}.jar" basedir="${build}"/>
  </target>

  <target name="examples"
  	description="compiles the examples"
	depends="compile">
	
    <path id="compile.classpath">
      <pathelement location="${build}" /> 
    </path>

    <javac srcdir="${exasrc}" destdir="${exabuild}">
          <classpath refid="compile.classpath"/>
    </javac>
    
  </target>
	
  <target name="clean"
        description="clean up" >
	  <!-- Delete the ${build} and ${dist} directory trees    1.4-->
    <delete dir="${build}"/>
    <delete dir="${dist}"/>
    <delete dir="${javadoc}"/>
  </target>

  <target name="javadoc">
  	<javadoc sourcepath="${src}"
		destdir="${javadoc}"
		source="1.5"
	>
		<packageset dir="${src}"/>
	</javadoc>
  </target>
</project>