Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate numbering images and headers in the dist targets. Refactor …
…code buildfile.
- Loading branch information
Jim Hinkey
committed
Apr 12, 2012
1 parent
53d8715
commit 3210836
Showing
7 changed files
with
415 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,63 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<project default="create_run_jar" name="Create Runnable Jar for Project liferay-doc-utils"> | ||
<target name="create_run_jar"> | ||
<jar destfile="./dist/liferay-doc-utils.jar" filesetmanifest="mergewithoutmain"> | ||
<project default="dist"> | ||
<property name="project.dir" value="." /> | ||
|
||
<property name="build.dir" value="${project.dir}/classes" /> | ||
<property name="dist.dir" value="${project.dir}/dist" /> | ||
<property name="lib.dir" value="${project.dir}/lib" /> | ||
<property name="src.dir" value="${project.dir}/src" /> | ||
|
||
<path id="lib.classpath"> | ||
<fileset dir="${lib.dir}" includes="*.jar" /> | ||
</path> | ||
|
||
<path id="project.classpath"> | ||
<pathelement path="${classpath}" /> | ||
<path refid="lib.classpath" /> | ||
</path> | ||
|
||
<!-- targets --> | ||
|
||
<target name="clean" description="cleans up" > | ||
<delete dir="${build.dir}" /> | ||
<delete dir="${dist.dir}" /> | ||
</target> | ||
|
||
<target name="compile" description="compiles the code"> | ||
<mkdir dir="${build.dir}" /> | ||
|
||
<antcall target="compile-java"> | ||
<param name="javac.classpathref" value="project.classpath" /> | ||
<param name="javac.destdir" value="${build.dir}" /> | ||
<param name="javac.srcdir" value="${src.dir}" /> | ||
</antcall> | ||
</target> | ||
|
||
<target name="compile-java"> | ||
<copy todir="${javac.destdir}"> | ||
<fileset dir="${javac.srcdir}" excludes="**/*.java" /> | ||
</copy> | ||
|
||
<javac | ||
classpathref="${javac.classpathref}" | ||
destdir="${javac.destdir}" | ||
includeAntRuntime="false" | ||
srcdir="${javac.srcdir}" | ||
/> | ||
</target> | ||
|
||
<target name="dist" depends="compile" | ||
description="compiles the code and creates a runnable JAR file for the project"> | ||
<mkdir dir="${dist.dir}" /> | ||
<jar destfile="${dist.dir}/liferay-doc-utils.jar" | ||
filesetmanifest="mergewithoutmain"> | ||
<manifest> | ||
<attribute name="Main-Class" value="com.liferay.documentation.util.DocUtils"/> | ||
<attribute name="Class-Path" value="."/> | ||
</manifest> | ||
<fileset dir="./bin"/> | ||
<zipfileset excludes="META-INF/*.SF" src="./lib/commons-io-2.0.1.jar"/> | ||
<fileset dir="${build.dir}"/> | ||
<zipfileset excludes="META-INF/*.SF" src="${lib.dir}/commons-io-2.0.1.jar"/> | ||
</jar> | ||
</target> | ||
|
||
</project> |
Binary file not shown.
Oops, something went wrong.