Skip to content

Commit

Permalink
fixed build to use hg revision
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioclessa committed Sep 14, 2009
1 parent 6030c8d commit e644205
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 42 deletions.
10 changes: 7 additions & 3 deletions conf/build/build-ivy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@
<ivy-cachepath pathid="test.classpath" conf="test" type="jar" />
</target>

<target name="publish">
<property file="${basedir}/revision.properties"/>
<ivy-publish resolver="local" pubrevision="${release}" overwrite="true">
<target name="publish" depends="ivy-dependencies">
<exec executable="hg" outputproperty="hg.revision">
<arg line="id -n"/>
</exec>
<propertyregex property="revision" input="${hg.revision}" regexp="([0-9]+)" select="\1" casesensitive="false" />
<echo message="revision: ${revision}"/>
<ivy-publish resolver="local" pubrevision="${revision}" overwrite="true">
<artifacts pattern="${basedir}/target/dist/[artifact].[ext]" />
</ivy-publish>
</target>
Expand Down
36 changes: 0 additions & 36 deletions conf/build/build-package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,40 +18,4 @@
</jar>
</target>

<target name="pre-build-war"/>

<target name="build-war" depends="pre-build-war, create-dist-folder, compile">
<delete dir="${basedir}/target/war" />
<mkdir dir="${basedir}/target/war" />
<copy todir="${basedir}/target/war/web"/>
<copy todir="${basedir}/target/war/WEB-INF">
<fileset dir="${basedir}/webapp/WEB-INF"/>
</copy>
<copy todir="${basedir}/target/war/classes">
<fileset dir="${basedir}/target/classes/main" excludes="log4j*.properties"/>
<fileset file="conf/log4j.properties"/>
</copy>
<copy todir="${basedir}/target/war/lib" flatten="true">
<path refid="default.classpath" />
</copy>
<war warfile="${basedir}/target/dist/${ivy.module}.war" webxml="${basedir}/target/war/WEB-INF/web.xml">
<lib dir="${basedir}/target/war/lib" />
<webinf dir="${basedir}/target/war/WEB-INF" excludes="web.xml" />
<fileset dir="${basedir}/target/war/web" />
<classes dir="${basedir}/target/war/classes" />
</war>
</target>

<target name="build-ear" depends="build-war">
<delete dir="${basedir}/target/ear" />
<mkdir dir="${basedir}/target/ear" />
<copy todir="${basedir}/target/ear">
<fileset dir="${basedir}/conf/ear" includes="**/*"/>
</copy>
<copy todir="${basedir}/target/ear">
<fileset file="${basedir}/target/dist/${ivy.module}.war"/>
</copy>
<zip destfile="${basedir}/target/dist/${ivy.module}.ear" basedir="${basedir}/target/ear"/>
</target>

</project>
4 changes: 2 additions & 2 deletions conf/build/ivysettings.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<ivysettings>

<property name="cache.dir" value="${basedir}/../ivy-f3270/cache"/>
<property name="cache.dir" value="${basedir}/../ivy/f3270/cache"/>
<property name="3rdParty.dir" value="${basedir}/ivy-repository"/>
<property name="local.dir" value="${basedir}/../ivy-f3270/local"/>
<property name="local.dir" value="${basedir}/../ivy/f3270/local"/>

<settings defaultResolver="default" defaultConflictManager="strict">
<caches defaultCacheDir="${cache.dir}" checkUpToDate="true"/>
Expand Down
1 change: 0 additions & 1 deletion revision.properties

This file was deleted.

0 comments on commit e644205

Please sign in to comment.