You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.4 KiB

<?xml version="1.0" encoding="UTF-8"?>
<!-- Configuration of the Ant build system to generate a Jar file -->
<project name="web_shared_build" default="main" xmlns:artifact="antlib:org.apache.maven.artifact.ant">
<basename property="my.project.name" file="${basedir}" />
<property name="fs.dir" value="${basedir}/target/${my.project.name}/WEB-INF/lib" />
<property name="fs.includes" value="web_shared-*.jar" />
<property name="userhome" value="${user.home}" />
<tstamp>
<format property="time.stamp" pattern="yyyy-MM-dd_HH:mm:ss" />
</tstamp>
<target name="main" depends="dir-check">
<echo>${time.stamp}</echo>
<jar destfile="${basedir}/target/web_shared-classes.jar" basedir="${basedir}/target/classes" includes="**" />
<copy file="${basedir}/target/web_shared-classes.jar" tofile="${userhome}//.m2/repository/de/tvo/web_shared/1/web_shared-1.jar" overwrite="true" flatten="true" />
<antcall target="webportal" />
</target>
<target name="webportal" if="webportal.exists">
<copy file="${basedir}/target/web_shared-classes.jar" tofile="${basedir}/../webportal/target/webportal/WEB-INF/lib/web_shared-1.jar" overwrite="true" flatten="true" />
</target>
<target name="dir-check">
<condition property="webportal.exists">
<available file="${basedir}/../webportal/target/webportal/WEB-INF/lib/" type="dir" />
</condition>
</target>
</project>