Sophie

Sophie

distrib > Mageia > 2 > i586 > by-pkgid > 1b411b8eef1ce4790fc77800f732e35d > files > 1

glassfish-management-api-3.1.0-0.1.b001.mga2.src.rpm

<project name="glassfish-management-api" default="dist" basedir=".">
    <description>
GlassFish Common APIs.
    </description>
  <!-- set global properties for this build -->
  <property name="version" value="3.1.0-b001"/>
  <property name="jar.name" value="glassfish-management-api"/>
  <property name="src" location="src"/>
  <property name="build" location="build/classes"/>
  <property name="dist"  location="dist"/>
  <property name="javadoc" location="dist/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} -->
    <javac srcdir="${src}" destdir="${build}" debug="${javac.debug}" source="1.5" target="1.5">
    </javac>
  </target>
  <target name="dist" depends="compile"
        description="generate the distribution" >
    <!-- Create the distribution directory -->
    <mkdir dir="${dist}"/>
    <jar destfile="${dist}/${jar.name}-${version}.jar">
      <fileset dir="${build}">
        <include name="**/*.class"/>
      </fileset>
      <manifest>
        <attribute name="Built-By" value="${user.name}"/>
      </manifest>
    </jar>
  </target>

  <target name="osgi"
	depends="dist">
    <mkdir dir="${dist}/bundles"/>
    <java classpath="/usr/share/java/aqute-bnd.jar" classname="aQute.bnd.main.bnd" fork="true" failonerror="true">
      <arg value="build"/>
      <arg value="-classpath"/>
      <arg value="${dist}/${jar.name}-${version}.jar"/>
      <arg value="-output"/>
      <arg value="${dist}/bundles/${jar.name}-${version}.jar"/>
      <arg value="make/management-api.bnd"/>
    </java>
  </target>
	
  <target name="clean"
        description="clean up" >
    <!-- Delete the ${build} and ${dist} directory trees -->
    <delete dir="${build}"/>
    <delete dir="${dist}"/>
    <delete dir="${javadoc}"/>
  </target>

  <target name="javadoc">
    <javadoc sourcepath="${src}"
      destdir="${javadoc}"
      source="1.5" charset="ISO-8859-1"
      >
      <packageset dir="${src}"/>
    </javadoc>
  </target>
</project>