* no active committer was maintaining the webslinger component * the component was experimental and not really used by OFBiz * the component was really big (lot of jars etc...) and we are trying to slim down the OFBiz framework and keep only the essential/useful features * this fixes a security issue reported to the OFBiz PMC The only Webslinger feature used by the OFBiz framework was the "service debug mode" (enabled by default with the property servicedispatcher.servicedebugmode): I have considered to keep it but it was impossible because it relied on Webslinger legacy code (in the org.webslinger.invoker.* package) that was never contributed as a source file to the OFBiz project; I have tried to review the source file from an external Webslinger repo but I couldn't find them; the only site about Webslinger I could find is this: http://www.webslinger.org/Downloads but the svn resources mentioned there are broken. The fact that the OFBiz frameework was dependent (for a feature useful only in development mode) on an external project that doesn't publish its source code (at least in an easy to find location) convinced me that it was better to clean up the dependency completely; on the bright side OFBiz should now use less memory. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1301866 13f79535-47bb-0310-9956-ffa450edef68
185 lines
6.9 KiB
XML
185 lines
6.9 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,sql/build.xml,
|
|
entity/build.xml,geronimo/build.xml,
|
|
catalina/build.xml,jetty/build.xml,
|
|
security/build.xml,service/build.xml,jcr/build.xml,entityext/build.xml,
|
|
bi/build.xml,minilang/build.xml,
|
|
webapp/build.xml,guiapp/build.xml,widget/build.xml,
|
|
common/build.xml,datafile/build.xml,birt/build.xml,
|
|
testtools/build.xml,
|
|
appserver/build.xml,webtools/build.xml,example/build.xml"/>
|
|
|
|
<filelist id="test-builds" dir="." files="base/build.xml,sql/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 dir="../runtime/logs/cobertura-report"/>
|
|
<delete verbose="on">
|
|
<fileset dir="../runtime/logs" includes="*">
|
|
<exclude name="README"/>
|
|
</fileset>
|
|
</delete>
|
|
</target>
|
|
|
|
<target name="clean-output">
|
|
<delete verbose="on">
|
|
<fileset dir="." includes="../runtime/output/*"/>
|
|
</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="clean-tempfiles">
|
|
<delete verbose="on">
|
|
<fileset dir="../runtime" includes="tempfiles/**/*"/>
|
|
</delete>
|
|
</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>
|