From: <sea...@mi...> - 2007-02-08 23:53:12
|
Update of /cvsroot/jaffa/JaffaBuild/build In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv5968 Added Files: build-portlet-liferay.xml Log Message: added build-portlet-liferay.xml for building portlets in dashboard module. --- NEW FILE: build-portlet-liferay.xml --- <?xml version="1.0" encoding="UTF-8"?> <project basedir=".." default="build" name="build-portlet-liferay"> <import file="${imports.basedir}/build/build-module.xml"/> <copydir src="${dashboard.basedir}/dist/jar" dest="${lib}" /> <target name="usage"> <echo> Usage: build target-name Available Module Targets: clean - Delete all working folders (except cache), so the next build is from source clean-dependent - Delete all cached dependent libararies so they will be refreshed on the next build get-dependencies - Builds all the dependencies , if not built already. compile - Compile all classes jar - Build JAR file for deployment html - Build a ZIP of HTML needed for inclusion in the WAR file build - Build JAR, ZIP, and WAR files release-prepare - Prepare a release in the /dist/release release-version - Release a named version to the repository release-HEAD - Release a HEAD version to the repository clean+build - Clean Build build+release - Build into dist/release clean+build+release - Clean Build into dist/release Available Testing Targets: test-httpunit - Execute the HTTPUnit tests and generate report test-junit - Execute all the Application tests and generate report </echo> </target> <!-- ====================================================================================================== --> <!-- Combine paths --> <!-- ====================================================================================================== --> <!-- <property name="tmp.project.class.path" refid="project.class.path" /> <path id="project.class.path" > <path refid="portlet.project.class.path" /> <pathelement path="${tmp.project.class.path}" /> </path> --> <!-- ====================================================================================================== --> <!-- Redefine build target --> <!-- ====================================================================================================== --> <target name="build" depends="compile,html,aop"> <mkdir dir="${dist.war}" /> <mkdir dir="${dist.war}/unzip" /> <unzip src="${dist.zip}/${appname}.zip" dest="${dist.war}/unzip" /> <if> <not> <available file="${dist.war}/unzip/META-INF" /> </not> <then> <mkdir dir="${dist.war}/unzip/META-INF" /> </then> </if> <if> <not> <available file="${dist.war}/unzip/imgs" /> </not> <then> <mkdir dir="${dist.war}/unzip/imgs" /> </then> </if> <war destfile="${dist.war}/${portletname}.war" webxml="${dist.war}/unzip/WEB-INF/web.xml" > <metainf dir="${dist.war}/unzip/META-INF" /> <webinf dir="${dist.war}/unzip/WEB-INF" excludes="web.xml" /> <webinf dir="${dashboard.basedir}/WEB-INF" /> <fileset dir="${dist.war}/unzip" > <include name="${portletname}/*" /> </fileset> <classes dir="${dist.classes}" /> <lib dir="${lib}" includes="*.jar" /> <!-- do not include jars in runtime --> <zipfileset dir="${dist.war}/unzip/imgs" prefix="imgs" /> </war> <delete dir="${dist.war}/unzip" /> </target> </project> |