Files
ofbiz-framework/framework/build.xml
T
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00

179 lines
6.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project name="OFBiz Framework Build" default="build" basedir=".">
<import file="../macros.xml"/>
<filelist id="framework-builds" dir="."
files="start/build.xml,base/build.xml,
entity/build.xml,geronimo/build.xml,
catalina/build.xml,jetty/build.xml,
security/build.xml,service/build.xml,entityext/build.xml,
webslinger/build.xml,
bi/build.xml,datafile/build.xml,minilang/build.xml,
webapp/build.xml,guiapp/build.xml,widget/build.xml,
common/build.xml,
testtools/build.xml,
appserver/build.xml,webtools/build.xml,example/build.xml"/>
<filelist id="test-builds" dir="." files="base/build.xml,entity/build.xml"/>
<property name="memory.max.param" value="-Xmx384M"/>
<!-- ================================================================== -->
<!-- Initialization of all property settings -->
<!-- ================================================================== -->
<target name="ofbiz-init">
<property environment="env"/>
</target>
<target name="dir-init" depends="ofbiz-init">
<mkdir dir="../runtime"/>
<mkdir dir="../runtime/output"/>
<mkdir dir="../runtime/logs"/>
<mkdir dir="../runtime/logs/test-results"/>
<mkdir dir="../runtime/data"/>
<mkdir dir="../runtime/data/derby"/>
<mkdir dir="../runtime/data/hsql"/>
<condition property="isMac">
<os family="mac"/>
</condition>
<antcall target="copy-derby-props" inheritall="true"/>
</target>
<target name="copy-derby-props" if="isMac">
<copy file="../runtime/data/derby.properties" todir="../runtime/data/derby"/>
</target>
<!-- ================================================================== -->
<!-- Removes all created files and directories -->
<!-- ================================================================== -->
<target name="refresh">
<antcall target="clean-all"/>
<antcall target="build"/>
</target>
<target name="clean-all">
<antcall target="clean-data"/>
<antcall target="clean-logs"/>
<antcall target="clean-output"/>
<antcall target="clean-xtra"/>
<antcall target="clean-catalina"/>
<antcall target="clean"/>
</target>
<target name="clean-data">
<delete verbose="on" includeemptydirs="true">
<fileset dir="../runtime/data" includes="**/*">
<exclude name="README"/>
<exclude name="derby.properties"/>
</fileset>
</delete>
</target>
<target name="clean-logs">
<delete verbose="on" dir="../runtime/logs/test-results"/>
<delete verbose="on">
<fileset dir="../runtime/logs" includes="*">
<exclude name="README"/>
</fileset>
</delete>
</target>
<target name="clean-output">
<delete verbose="on">
<fileset dir="../runtime/output" includes="*"/>
</delete>
</target>
<target name="clean-xtra">
<delete verbose="on">
<fileset dir="." includes="**/.nbattrs,**/*~,**/.#*,**/.DS_Store,**/*.rej,**/*.orig"/>
</delete>
</target>
<target name="clean-catalina">
<delete dir="../runtime/catalina/work"/>
</target>
<target name="tests">
<subant target="tests">
<filelist refid="test-builds"/>
</subant>
</target>
<target name="clean">
<iterate target="clean" filelist="framework-builds"/>
<echo message="[clean] ========== Done Cleaning Framework =========="/>
</target>
<!-- ================================================================== -->
<!-- Build Components -->
<!-- ================================================================== -->
<target name="build" depends="dir-init">
<echo message="[build] ========== Start Building Framework (Compile) =========="/>
<!-- make sure the data and logs directories exist (they should exist, because they are in svn) -->
<mkdir dir="../runtime/data"/>
<mkdir dir="../runtime/logs"/>
<iterate inheritall="false" filelist="framework-builds"/>
<echo message="[build] ========== Done Building Framework (Compile) =========="/>
</target>
<!-- ================================================================== -->
<!-- Build JavaDocs -->
<!-- ================================================================== -->
<target name="docs">
<echo message="[docs] ========== Start Building Framework (JavaDoc) =========="/>
<iterate target="docs" filelist="framework-builds"/>
<echo message="[docs] ========== Done Building Framework (JavaDocs) =========="/>
</target>
<!-- ================================================================== -->
<!-- Contrib Targets -->
<!-- ================================================================== -->
<target name="copy-contrib">
<copy todir="${basedir}" overwrite="true" verbose="true">
<fileset dir="${basedir}/contrib" excludes="contrib/**,**/*.class"/>
</copy>
</target>
<target name="build-contrib" depends="copy-contrib,refresh"/>
<!-- ================================================================== -->
<!-- Script Targets -->
<!-- ================================================================== -->
<target name="scriptfix">
<fixcrlf srcdir="${basedir}" eol="lf" eof="remove" includes="**/*.sh"/>
<fixcrlf srcdir="${basedir}" eol="crlf" includes="**/*.bat"/>
</target>
</project>