84 lines
2.8 KiB
XML
84 lines
2.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project name="org.talend.designer.components.libs" default="process" basedir=".">
|
|
|
|
<property name="component.plugin.home" value="../../../org.talend.designer.components.localprovider/components" />
|
|
|
|
<!-- #################################################### -->
|
|
|
|
<!-- modification 1: config -->
|
|
<property name="jar.name" value="MsmqTalend-1.0.5.jar" />
|
|
<property name="component.name" value="tMicrosoftMQInput" />
|
|
<property name="author.name" value="ytao" />
|
|
|
|
<!-- #################################################### -->
|
|
|
|
<!-- sourcecode and final jar path -->
|
|
<property name="source.home" value="." />
|
|
<property name="jar.home" value="${component.plugin.home}/${component.name}/${jar.name}" />
|
|
|
|
<!-- temp dir for clasee files -->
|
|
<property name="build.dir" value="../../build" />
|
|
|
|
<!-- compile option -->
|
|
<property name="compile.debug" value="true" />
|
|
<property name="compile.deprecation" value="false" />
|
|
<property name="compile.optimize" value="true" />
|
|
|
|
<target name="process" description="prepare a temp dir">
|
|
<antcall target="prepare" />
|
|
<antcall target="compile" />
|
|
<antcall target="clean" />
|
|
</target>
|
|
|
|
<target name="prepare" description="prepare a temp dir">
|
|
<delete dir="${build.dir}" />
|
|
<mkdir dir="${build.dir}" />
|
|
<mkdir dir="${build.dir}/classes" />
|
|
</target>
|
|
|
|
<target name="compile" description="Compile Java sources">
|
|
|
|
<!-- compile -->
|
|
<javac srcdir="${source.home}" destdir="${build.dir}/classes" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}">
|
|
|
|
</javac>
|
|
|
|
<!-- include source code -->
|
|
<copy todir="${build.dir}/classes">
|
|
<fileset dir="${source.home}">
|
|
<exclude name="build.xml" />
|
|
</fileset>
|
|
</copy>
|
|
|
|
<!-- make jar -->
|
|
<tstamp>
|
|
<format property="date" pattern="yyyy-MM-dd HH:mm:ss" />
|
|
</tstamp>
|
|
|
|
<jar destfile="${build.dir}/${jar.name}" basedir="${build.dir}/classes">
|
|
<manifest>
|
|
<!-- main class -->
|
|
<attribute name="Main-Class" value="org.talend.msmq.MsmqUtil" />
|
|
<!-- who -->
|
|
<attribute name="Built-By" value="${author.name}" />
|
|
<!-- when -->
|
|
<attribute name="Built-Date" value="${date}" />
|
|
<!-- JDK version -->
|
|
<attribute name="Created-By" value="${java.version} (${java.vendor})" />
|
|
<!-- Information about the program itself -->
|
|
<attribute name="Implementation-Vendor" value="Talend SA" />
|
|
<attribute name="Implementation-Title" value="${jar.name}" />
|
|
<attribute name="Implementation-Version" value="0.9" />
|
|
</manifest>
|
|
</jar>
|
|
|
|
<!-- move jar -->
|
|
<move file="${build.dir}/${jar.name}" tofile="${jar.home}" />
|
|
|
|
</target>
|
|
|
|
<target name="clean" description="clean the temp dir">
|
|
<delete dir="${build.dir}" />
|
|
<mkdir dir="${build.dir}" />
|
|
</target>
|
|
</project> |