[Amavisadmin-svn] SF.net SVN: amavisadmin: [44] amavisadmin/trunk
Status: Beta
Brought to you by:
streindl
From: <str...@us...> - 2007-01-24 17:52:35
|
Revision: 44 http://amavisadmin.svn.sourceforge.net/amavisadmin/?rev=44&view=rev Author: streindl Date: 2007-01-24 09:52:29 -0800 (Wed, 24 Jan 2007) Log Message: ----------- Refactoring of webapp package Added Paths: ----------- amavisadmin/trunk/webapp/ amavisadmin/trunk/webapp/build.xml amavisadmin/trunk/webapp/catalog.xml amavisadmin/trunk/webapp/lib/ amavisadmin/trunk/webapp/lib/complibs/ amavisadmin/trunk/webapp/nbproject/ amavisadmin/trunk/webapp/src/ amavisadmin/trunk/webapp/test/ amavisadmin/trunk/webapp/web/ Removed Paths: ------------- amavisadmin/trunk/build.xml amavisadmin/trunk/catalog.xml amavisadmin/trunk/lib/ amavisadmin/trunk/nbproject/ amavisadmin/trunk/src/ amavisadmin/trunk/test/ amavisadmin/trunk/web/ amavisadmin/trunk/webapp/lib/complibs/ Deleted: amavisadmin/trunk/build.xml =================================================================== --- amavisadmin/trunk/build.xml 2007-01-24 17:49:44 UTC (rev 43) +++ amavisadmin/trunk/build.xml 2007-01-24 17:52:29 UTC (rev 44) @@ -1,119 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- You may freely edit this file. See commented blocks below for --> -<!-- some examples of how to customize the build. --> -<!-- (If you delete it and reopen the project it will be recreated.) --> -<project name="SPAMAdmin" default="default" basedir="."> - <description>Builds, tests, and runs the project SPAMAdmin.</description> - <import file="nbproject/build-impl.xml"/> - - <import file="nbproject/profiler-build-impl.xml"/> <!-- - - There exist several targets which are by default empty and which can be - used for execution of your tasks. These targets are usually executed - before and after some main targets. They are: - - -pre-init: called before initialization of project properties - -post-init: called after initialization of project properties - -pre-compile: called before javac compilation - -post-compile: called after javac compilation - -pre-compile-single: called before javac compilation of single file - -post-compile-single: called after javac compilation of single file - -pre-compile-test: called before javac compilation of JUnit tests - -post-compile-test: called after javac compilation of JUnit tests - -pre-compile-test-single: called before javac compilation of single JUnit test - -post-compile-test-single: called after javac compilation of single JUunit test - -pre-dist: called before jar building - -post-dist: called after jar building - -post-clean: called after cleaning build products - -pre-run-deploy: called before deploying - -post-run-deploy: called after deploying - - Example of pluging an obfuscator after the compilation could look like - - <target name="post-compile"> - <obfuscate> - <fileset dir="${build.classes.dir}"/> - </obfuscate> - </target> - - For list of available properties check the imported - nbproject/build-impl.xml file. - - - Other way how to customize the build is by overriding existing main targets. - The target of interest are: - - init-macrodef-javac: defines macro for javac compilation - init-macrodef-junit: defines macro for junit execution - init-macrodef-debug: defines macro for class debugging - do-dist: jar archive building - run: execution of project - javadoc-build: javadoc generation - - Example of overriding the target for project execution could look like - - <target name="run" depends="<PROJNAME>-impl.jar"> - <exec dir="bin" executable="launcher.exe"> - <arg file="${dist.jar}"/> - </exec> - </target> - - Notice that overridden target depends on jar target and not only on - compile target as regular run target does. Again, for list of available - properties which you can use check the target you are overriding in - nbproject/build-impl.xml file. - - --> - <!-- <target name="-post-compile"> - <taskdef name="schemaexport" - classname="org.hibernate.tool.hbm2ddl.SchemaExportTask" - classpath="${build.classes.dir}:${javac.classpath}"/> - <schemaexport - config="src/java/hibernate.cfg.xml" - quiet="no" - text="yes" - drop="no" - delimiter=";" - output="build/schema-export.sql"> - </schemaexport> - </target>--> - - <!-- Build amavisadmin.properties for build and version information --> - <target name="-post-compile"> - <tstamp> - <format property="build.timestamp" - pattern="yyyyMMdd'T'HHmmssZ" locale="en"/> - </tstamp> - <exec executable="/usr/bin/perl"> - <arg value="tools/reposInfo.pl" /> - <redirector output="reposinfo.properties" /> - </exec> - <copy file="${src.dir}/amavisadmin.properties.in" - tofile="${build.classes.dir}/amavisadmin.properties" - filtering="true" overwrite="true"> - <filterset> - <filtersfile file="reposinfo.properties" /> - <filter token="TSTAMP" value="${build.timestamp}" /> - </filterset> - </copy> - <delete file="reposinfo.properties" /> - </target> - - <target name="-pre-dist"> - <copy file="LICENSE" - tofile="${build.web.dir}/LICENSE" - filtering="false" overwrite="true"> - </copy> - </target> - - <target name="schemaupdate"> - <taskdef name="schemaupdate" - classname="org.hibernate.tool.hbm2ddl.SchemaUpdateTask" - classpath="${build.classes.dir}:${javac.classpath}"/> - - <schemaupdate - config="src/java/hibernate.cfg.xml" - quiet="no" - text="yes" /> - </target> -</project> Deleted: amavisadmin/trunk/catalog.xml =================================================================== Copied: amavisadmin/trunk/webapp/build.xml (from rev 39, amavisadmin/trunk/build.xml) =================================================================== --- amavisadmin/trunk/webapp/build.xml (rev 0) +++ amavisadmin/trunk/webapp/build.xml 2007-01-24 17:52:29 UTC (rev 44) @@ -0,0 +1,119 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- You may freely edit this file. See commented blocks below for --> +<!-- some examples of how to customize the build. --> +<!-- (If you delete it and reopen the project it will be recreated.) --> +<project name="SPAMAdmin" default="default" basedir="."> + <description>Builds, tests, and runs the project SPAMAdmin.</description> + <import file="nbproject/build-impl.xml"/> + + <import file="nbproject/profiler-build-impl.xml"/> <!-- + + There exist several targets which are by default empty and which can be + used for execution of your tasks. These targets are usually executed + before and after some main targets. They are: + + -pre-init: called before initialization of project properties + -post-init: called after initialization of project properties + -pre-compile: called before javac compilation + -post-compile: called after javac compilation + -pre-compile-single: called before javac compilation of single file + -post-compile-single: called after javac compilation of single file + -pre-compile-test: called before javac compilation of JUnit tests + -post-compile-test: called after javac compilation of JUnit tests + -pre-compile-test-single: called before javac compilation of single JUnit test + -post-compile-test-single: called after javac compilation of single JUunit test + -pre-dist: called before jar building + -post-dist: called after jar building + -post-clean: called after cleaning build products + -pre-run-deploy: called before deploying + -post-run-deploy: called after deploying + + Example of pluging an obfuscator after the compilation could look like + + <target name="post-compile"> + <obfuscate> + <fileset dir="${build.classes.dir}"/> + </obfuscate> + </target> + + For list of available properties check the imported + nbproject/build-impl.xml file. + + + Other way how to customize the build is by overriding existing main targets. + The target of interest are: + + init-macrodef-javac: defines macro for javac compilation + init-macrodef-junit: defines macro for junit execution + init-macrodef-debug: defines macro for class debugging + do-dist: jar archive building + run: execution of project + javadoc-build: javadoc generation + + Example of overriding the target for project execution could look like + + <target name="run" depends="<PROJNAME>-impl.jar"> + <exec dir="bin" executable="launcher.exe"> + <arg file="${dist.jar}"/> + </exec> + </target> + + Notice that overridden target depends on jar target and not only on + compile target as regular run target does. Again, for list of available + properties which you can use check the target you are overriding in + nbproject/build-impl.xml file. + + --> + <!-- <target name="-post-compile"> + <taskdef name="schemaexport" + classname="org.hibernate.tool.hbm2ddl.SchemaExportTask" + classpath="${build.classes.dir}:${javac.classpath}"/> + <schemaexport + config="src/java/hibernate.cfg.xml" + quiet="no" + text="yes" + drop="no" + delimiter=";" + output="build/schema-export.sql"> + </schemaexport> + </target>--> + + <!-- Build amavisadmin.properties for build and version information --> + <target name="-post-compile"> + <tstamp> + <format property="build.timestamp" + pattern="yyyyMMdd'T'HHmmssZ" locale="en"/> + </tstamp> + <exec executable="/usr/bin/perl"> + <arg value="tools/reposInfo.pl" /> + <redirector output="reposinfo.properties" /> + </exec> + <copy file="${src.dir}/amavisadmin.properties.in" + tofile="${build.classes.dir}/amavisadmin.properties" + filtering="true" overwrite="true"> + <filterset> + <filtersfile file="reposinfo.properties" /> + <filter token="TSTAMP" value="${build.timestamp}" /> + </filterset> + </copy> + <delete file="reposinfo.properties" /> + </target> + + <target name="-pre-dist"> + <copy file="LICENSE" + tofile="${build.web.dir}/LICENSE" + filtering="false" overwrite="true"> + </copy> + </target> + + <target name="schemaupdate"> + <taskdef name="schemaupdate" + classname="org.hibernate.tool.hbm2ddl.SchemaUpdateTask" + classpath="${build.classes.dir}:${javac.classpath}"/> + + <schemaupdate + config="src/java/hibernate.cfg.xml" + quiet="no" + text="yes" /> + </target> +</project> Copied: amavisadmin/trunk/webapp/catalog.xml (from rev 43, amavisadmin/trunk/catalog.xml) =================================================================== Copied: amavisadmin/trunk/webapp/lib (from rev 39, amavisadmin/trunk/lib) Copied: amavisadmin/trunk/webapp/lib/complibs (from rev 43, amavisadmin/trunk/lib/complibs) Copied: amavisadmin/trunk/webapp/nbproject (from rev 43, amavisadmin/trunk/nbproject) Copied: amavisadmin/trunk/webapp/src (from rev 43, amavisadmin/trunk/src) Copied: amavisadmin/trunk/webapp/test (from rev 43, amavisadmin/trunk/test) Copied: amavisadmin/trunk/webapp/web (from rev 43, amavisadmin/trunk/web) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |