]> git.argeo.org Git - gpl/argeo-slc.git/commitdiff
Introduce build scripts
authorMathieu Baudier <mbaudier@argeo.org>
Thu, 15 Nov 2007 11:11:18 +0000 (11:11 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Thu, 15 Nov 2007 11:11:18 +0000 (11:11 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@708 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

org.argeo.slc/.classpath
org.argeo.slc/build.xml [new file with mode: 0644]
org.argeo.slc/lib-src/junit-3.8.2-sources.jar [new file with mode: 0644]
org.argeo.slc/lib/junit-3.8.2.jar [new file with mode: 0644]
org.argeo.slc/src/main/config/bin/ant.bat [new file with mode: 0644]
org.argeo.slc/src/main/config/include/ant/slc-factory-macrodefs.xml [new file with mode: 0644]
org.argeo.slc/src/main/config/include/ant/slc-factory-targets.xml [new file with mode: 0644]
org.argeo.slc/src/main/java/org/argeo/slc/ant/SlcAntConfig.java
org.argeo.slc/src/main/java/org/argeo/slc/ant/SlcProjectHelper.java

index be17a5ece7cfc8fb05d19fbbcbf4a9584c555c15..389d06896e2ed7bbb01c269ca473f3c5bfc37910 100644 (file)
@@ -20,7 +20,7 @@
        <classpathentry kind="lib" path="lib/hsqldb.jar"/>\r
        <classpathentry kind="lib" path="lib/jta.jar"/>\r
        <classpathentry kind="lib" path="lib/dbunit-2.2.jar" sourcepath="lib-src/dbunit-2.2-sources.jar"/>\r
-       <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3"/>\r
+       <classpathentry kind="lib" path="lib/junit-3.8.2.jar" sourcepath="lib-src/junit-3.8.2-sources.jar"/>\r
        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>\r
        <classpathentry kind="output" path="target/classes"/>\r
 </classpath>\r
diff --git a/org.argeo.slc/build.xml b/org.argeo.slc/build.xml
new file mode 100644 (file)
index 0000000..02e5f12
--- /dev/null
@@ -0,0 +1,7 @@
+<project default="all">\r
+       <property name="package.version" value="0.3.3" />\r
+       <property name="package.prefix" value="argeo-slc" />\r
+\r
+       <import file="src/main/config/include/ant/slc-factory-targets.xml" />\r
+\r
+</project>
\ No newline at end of file
diff --git a/org.argeo.slc/lib-src/junit-3.8.2-sources.jar b/org.argeo.slc/lib-src/junit-3.8.2-sources.jar
new file mode 100644 (file)
index 0000000..28ea5fc
Binary files /dev/null and b/org.argeo.slc/lib-src/junit-3.8.2-sources.jar differ
diff --git a/org.argeo.slc/lib/junit-3.8.2.jar b/org.argeo.slc/lib/junit-3.8.2.jar
new file mode 100644 (file)
index 0000000..c8f711d
Binary files /dev/null and b/org.argeo.slc/lib/junit-3.8.2.jar differ
diff --git a/org.argeo.slc/src/main/config/bin/ant.bat b/org.argeo.slc/src/main/config/bin/ant.bat
new file mode 100644 (file)
index 0000000..f8fb7d5
--- /dev/null
@@ -0,0 +1,226 @@
+@echo off\r
+\r
+REM  Licensed to the Apache Software Foundation (ASF) under one or more\r
+REM  contributor license agreements.  See the NOTICE file distributed with\r
+REM  this work for additional information regarding copyright ownership.\r
+REM  The ASF licenses this file to You under the Apache License, Version 2.0\r
+REM  (the "License"); you may not use this file except in compliance with\r
+REM  the License.  You may obtain a copy of the License at\r
+REM \r
+REM      http://www.apache.org/licenses/LICENSE-2.0\r
+REM \r
+REM  Unless required by applicable law or agreed to in writing, software\r
+REM  distributed under the License is distributed on an "AS IS" BASIS,\r
+REM  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+REM  See the License for the specific language governing permissions and\r
+REM  limitations under the License.\r
+\r
+REM This is an inordinately troublesome piece of code, particularly because it\r
+REM tries to work on both Win9x and WinNT-based systems. If we could abandon '9x\r
+REM support, things would be much easier, but sadly, it is not yet time.\r
+REM Be cautious about editing this, and only add WinNT specific stuff in code that\r
+REM only runs on WinNT.\r
+\r
+if "%HOME%"=="" goto homeDrivePathPre\r
+if exist "%HOME%\antrc_pre.bat" call "%HOME%\antrc_pre.bat"\r
+\r
+:homeDrivePathPre\r
+if "%HOMEDRIVE%%HOMEPATH%"=="" goto userProfilePre\r
+if "%HOMEDRIVE%%HOMEPATH%"=="%HOME%" goto userProfilePre\r
+if exist "%HOMEDRIVE%%HOMEPATH%\antrc_pre.bat" call "%HOMEDRIVE%%HOMEPATH%\antrc_pre.bat"\r
+\r
+:userProfilePre\r
+if "%USERPROFILE%"=="" goto alpha\r
+if "%USERPROFILE%"=="%HOME%" goto alpha\r
+if "%USERPROFILE%"=="%HOMEDRIVE%%HOMEPATH%" goto alpha\r
+if exist "%USERPROFILE%\antrc_pre.bat" call "%USERPROFILE%\antrc_pre.bat"\r
+\r
+:alpha\r
+\r
+if "%OS%"=="Windows_NT" @setlocal\r
+if "%OS%"=="WINNT" @setlocal\r
+\r
+if "%ANT_HOME%"=="" goto setDefaultAntHome\r
+\r
+:stripAntHome\r
+if not _%ANT_HOME:~-1%==_\ goto checkClasspath\r
+set ANT_HOME=%ANT_HOME:~0,-1%\r
+goto stripAntHome\r
+\r
+:setDefaultAntHome\r
+rem %~dp0 is expanded pathname of the current script under NT\r
+set ANT_HOME=%~dp0..\r
+\r
+:checkClasspath\r
+set _USE_CLASSPATH=yes\r
+rem CLASSPATH must not be used if it is equal to ""\r
+if "%CLASSPATH%"=="""" set _USE_CLASSPATH=no\r
+if "%CLASSPATH%"=="" set _USE_CLASSPATH=no\r
+\r
+rem Slurp the command line arguments. This loop allows for an unlimited number\r
+rem of arguments (up to the command line limit, anyway).\r
+set ANT_CMD_LINE_ARGS=%1\r
+if ""%1""=="""" goto doneStart\r
+shift\r
+:setupArgs\r
+if ""%1""=="""" goto doneStart\r
+if ""%1""==""-noclasspath"" goto clearclasspath\r
+set ANT_CMD_LINE_ARGS=%ANT_CMD_LINE_ARGS% %1\r
+shift\r
+goto setupArgs\r
+\r
+rem here is there is a -noclasspath in the options\r
+:clearclasspath\r
+set _USE_CLASSPATH=no\r
+shift\r
+goto setupArgs\r
+\r
+rem This label provides a place for the argument list loop to break out\r
+rem and for NT handling to skip to.\r
+\r
+:doneStart\r
+\r
+if _USE_CLASSPATH==no goto findAntHome\r
+\r
+:stripClasspath\r
+if not _%CLASSPATH:~-1%==_\ goto findAntHome\r
+set CLASSPATH=%CLASSPATH:~0,-1%\r
+goto stripClasspath\r
+\r
+:findAntHome\r
+rem find ANT_HOME if it does not exist due to either an invalid value passed\r
+rem by the user or the %0 problem on Windows 9x\r
+if exist "%ANT_HOME%\lib\ant.jar" goto checkJava\r
+\r
+rem check for ant in Program Files\r
+if not exist "%ProgramFiles%\ant" goto checkSystemDrive\r
+set ANT_HOME=%ProgramFiles%\ant\r
+goto checkJava\r
+\r
+:checkSystemDrive\r
+rem check for ant in root directory of system drive\r
+if not exist %SystemDrive%\ant\lib\ant.jar goto checkCDrive\r
+set ANT_HOME=%SystemDrive%\ant\r
+goto checkJava\r
+\r
+:checkCDrive\r
+rem check for ant in C:\ant for Win9X users\r
+if not exist C:\ant\lib\ant.jar goto noAntHome\r
+set ANT_HOME=C:\ant\r
+goto checkJava\r
+\r
+:noAntHome\r
+echo ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME.\r
+goto end\r
+\r
+:checkJava\r
+set _JAVACMD=%JAVACMD%\r
+\r
+if "%JAVA_HOME%" == "" goto noJavaHome\r
+if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome\r
+if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe\r
+goto checkJikes\r
+\r
+:noJavaHome\r
+if "%_JAVACMD%" == "" set _JAVACMD=java.exe\r
+\r
+:checkJikes\r
+if not "%JIKESPATH%"=="" goto runAntWithJikes\r
+\r
+:runAnt\r
+if "%_USE_CLASSPATH%"=="no" goto runAntNoClasspath\r
+:runAntWithClasspath\r
+"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -cp "%CLASSPATH%" %ANT_CMD_LINE_ARGS%\r
+rem Check the error code of the Ant build\r
+if not "%OS%"=="Windows_NT" goto onError\r
+set ANT_ERROR=%ERRORLEVEL%\r
+goto end\r
+\r
+:runAntNoClasspath\r
+"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %ANT_CMD_LINE_ARGS%\r
+rem Check the error code of the Ant build\r
+if not "%OS%"=="Windows_NT" goto onError\r
+set ANT_ERROR=%ERRORLEVEL%\r
+goto end\r
+\r
+:runAntWithJikes\r
+\r
+if not _%JIKESPATH:~-1%==_\ goto checkJikesAndClasspath\r
+set JIKESPATH=%JIKESPATH:~0,-1%\r
+goto runAntWithJikes\r
+\r
+:checkJikesAndClasspath\r
+\r
+if "%_USE_CLASSPATH%"=="no" goto runAntWithJikesNoClasspath\r
+\r
+:runAntWithJikesAndClasspath\r
+"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" "-Djikes.class.path=%JIKESPATH%" org.apache.tools.ant.launch.Launcher %ANT_ARGS%  -cp "%CLASSPATH%" %ANT_CMD_LINE_ARGS%\r
+rem Check the error code of the Ant build\r
+if not "%OS%"=="Windows_NT" goto onError\r
+set ANT_ERROR=%ERRORLEVEL%\r
+goto end\r
+\r
+:runAntWithJikesNoClasspath\r
+"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" "-Djikes.class.path=%JIKESPATH%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %ANT_CMD_LINE_ARGS%\r
+rem Check the error code of the Ant build\r
+if not "%OS%"=="Windows_NT" goto onError\r
+set ANT_ERROR=%ERRORLEVEL%\r
+goto end\r
+\r
+:onError\r
+rem Windows 9x way of checking the error code.  It matches via brute force.\r
+for %%i in (1 10 100) do set err%%i=\r
+for %%i in (0 1 2) do if errorlevel %%i00 set err100=%%i\r
+if %err100%==2 goto onError200\r
+if %err100%==0 set err100=\r
+for %%i in (0 1 2 3 4 5 6 7 8 9) do if errorlevel %err100%%%i0 set err10=%%i\r
+if "%err100%"=="" if %err10%==0 set err10=\r
+:onError1\r
+for %%i in (0 1 2 3 4 5 6 7 8 9) do if errorlevel %err100%%err10%%%i set err1=%%i\r
+goto onErrorEnd\r
+:onError200\r
+for %%i in (0 1 2 3 4 5) do if errorlevel 2%%i0 set err10=%%i\r
+if err10==5 for %%i in (0 1 2 3 4 5) do if errorlevel 25%%i set err1=%%i\r
+if not err10==5 goto onError1\r
+:onErrorEnd\r
+set ANT_ERROR=%err100%%err10%%err1%\r
+for %%i in (1 10 100) do set err%%i=\r
+\r
+:end\r
+rem bug ID 32069: resetting an undefined env variable changes the errorlevel.\r
+if not "%_JAVACMD%"=="" set _JAVACMD=\r
+if not "%_ANT_CMD_LINE_ARGS%"=="" set ANT_CMD_LINE_ARGS=\r
+\r
+if "%ANT_ERROR%"=="0" goto mainEnd\r
+\r
+rem Set the return code if we are not in NT.  We can only set\r
+rem a value of 1, but it's better than nothing.\r
+if not "%OS%"=="Windows_NT" echo 1 > nul | choice /n /c:1\r
+\r
+rem Set the ERRORLEVEL if we are running NT.\r
+if "%OS%"=="Windows_NT" color 00\r
+\r
+goto omega\r
+\r
+:mainEnd\r
+\r
+rem If there were no errors, we run the post script.\r
+if "%OS%"=="Windows_NT" @endlocal\r
+if "%OS%"=="WINNT" @endlocal\r
+\r
+if "%HOME%"=="" goto homeDrivePathPost\r
+if exist "%HOME%\antrc_post.bat" call "%HOME%\antrc_post.bat"\r
+\r
+:homeDrivePathPost\r
+if "%HOMEDRIVE%%HOMEPATH%"=="" goto userProfilePost\r
+if "%HOMEDRIVE%%HOMEPATH%"=="%HOME%" goto userProfilePost\r
+if exist "%HOMEDRIVE%%HOMEPATH%\antrc_post.bat" call "%HOMEDRIVE%%HOMEPATH%\antrc_post.bat"\r
+\r
+:userProfilePost\r
+if "%USERPROFILE%"=="" goto omega\r
+if "%USERPROFILE%"=="%HOME%" goto omega\r
+if "%USERPROFILE%"=="%HOMEDRIVE%%HOMEPATH%" goto omega\r
+if exist "%USERPROFILE%\antrc_post.bat" call "%USERPROFILE%\antrc_post.bat"\r
+\r
+:omega\r
+\r
diff --git a/org.argeo.slc/src/main/config/include/ant/slc-factory-macrodefs.xml b/org.argeo.slc/src/main/config/include/ant/slc-factory-macrodefs.xml
new file mode 100644 (file)
index 0000000..47180a9
--- /dev/null
@@ -0,0 +1,67 @@
+<project>\r
+       <macrodef name="compile">\r
+               <attribute name="srcdir" />\r
+               <attribute name="artifact" />\r
+               <attribute name="classpathref" default="cp.main" />\r
+               <sequential>\r
+                       <mkdir dir="${compile.base}/@{artifact}" />\r
+                       <javac destdir="${compile.base}/@{artifact}"\r
+                               srcdir="@{srcdir}" debug="on" fork="true"\r
+                               includeantruntime="false">\r
+                               <classpath>\r
+                                       <path refid="@{classpathref}" />\r
+                               </classpath>\r
+                       </javac>\r
+               </sequential>\r
+       </macrodef>\r
+\r
+       <macrodef name="createJar">\r
+               <attribute name="srcdir" />\r
+               <attribute name="artifact" />\r
+               <sequential>\r
+                       <jar destfile="${dist.jar}/@{artifact}.jar">\r
+                               <zipfileset dir="@{srcdir}">\r
+                                       <exclude name="**/*.java" />\r
+                                       <exclude name="**/*.html" />\r
+                                       <include name="**/*.*" />\r
+                               </zipfileset>\r
+                               <zipfileset dir="${compile.base}/@{artifact}">\r
+                                       <include name="**/*.*" />\r
+                               </zipfileset>\r
+                               <manifest>\r
+                                       <attribute name="Specification-Title"\r
+                                               value="${package.prefix}" />\r
+                                       <attribute name="Specification-Version"\r
+                                               value="${package.version}" />\r
+                                       <attribute name="Implementation-Title"\r
+                                               value="@{artifact}" />\r
+                                       <attribute name="Implementation-Version"\r
+                                               value="${package.releaseId}" />\r
+                               </manifest>\r
+                       </jar>\r
+               </sequential>\r
+       </macrodef>\r
+\r
+       <macrodef name="api">\r
+               <attribute name="srcdir" />\r
+               <attribute name="artifact" />\r
+               <attribute name="classpathref" default="cp.main" />\r
+               <element name="links" optional="true" />\r
+               <sequential>\r
+                       <javadoc access="protected"\r
+                               destdir="${dist.doc}/@{artifact}/api" source="1.5"\r
+                               sourcepath="@{srcDir}"\r
+                               doctitle="API of @{artifact} (v${package.releaseId})"\r
+                               windowtitle="@{artifact} v${package.version}">\r
+                               <classpath>\r
+                                       <path refid="@{classpathref}" />\r
+                               </classpath>\r
+                               <link href="http://java.sun.com/j2se/1.5.0/docs/api/" />\r
+                               <link\r
+                                       href="http://static.springframework.org/spring/docs/2.0.x/api/" />\r
+                               <link href="http://www.hibernate.org/hib_docs/v3/api/" />\r
+                               <links />\r
+                       </javadoc>\r
+               </sequential>\r
+       </macrodef>\r
+</project>
\ No newline at end of file
diff --git a/org.argeo.slc/src/main/config/include/ant/slc-factory-targets.xml b/org.argeo.slc/src/main/config/include/ant/slc-factory-targets.xml
new file mode 100644 (file)
index 0000000..ade9f61
--- /dev/null
@@ -0,0 +1,122 @@
+<project default="all">\r
+       <!-- TO BE OVERRIDDEN -->\r
+       <property name="package.type" value="I" />\r
+       <property name="main.artifact" value="${package.prefix}" />\r
+       <property name="test.artifact" value="${package.prefix}-test" />\r
+\r
+       <property name="main.srcdir" location="src/main/java" />\r
+       <property name="main.libdir" location="lib" />\r
+       <property name="test.srcdir" location="src/test/java" />\r
+\r
+       <property name="package.base" location="target/package/" />\r
+\r
+       <property name="dist.base" location="target/dist/" />\r
+       <property name="dist.doc" location="${dist.base}/doc" />\r
+       <property name="dist.lib" location="${dist.base}/lib" />\r
+\r
+       <property name="dist.jar" location="target/jar" />\r
+\r
+       <property name="compile.base" location="target/compile" />\r
+\r
+       <path id="cp.main">\r
+               <fileset dir="${main.libdir}">\r
+                       <include name="**/*.jar" />\r
+               </fileset>\r
+       </path>\r
+\r
+       <path id="cp.test">\r
+               <fileset dir="${main.libdir}">\r
+                       <include name="**/*.jar" />\r
+               </fileset>\r
+               <pathelement location="${compile.base}/${main.artifact}" />\r
+       </path>\r
+\r
+       <import file="slc-factory-macrodefs.xml" />\r
+\r
+       <target name="all" depends="dist.package">\r
+               <echo message="Build of ${package.name} completed" />\r
+       </target>\r
+\r
+       <target name="clean">\r
+               <delete dir="${dist.jar}" />\r
+               <delete dir="${dist.base}" />\r
+               <delete dir="${package.base}" />\r
+               <delete dir="${compile.base}" />\r
+       </target>\r
+\r
+\r
+       <target name="init">\r
+               <!-- To be overriden -->\r
+       </target>\r
+\r
+       <target name="initInternal">\r
+               <fail unless="package.version"\r
+                     message="Property 'package.version' must be set" />\r
+               <fail unless="package.prefix"\r
+                     message="Property 'package.prefix' must be set" />\r
+\r
+               <tstamp>\r
+                       <format property="package.tstamp" pattern="yyMMddHHmmss" />\r
+               </tstamp>\r
+               <property name="package.releaseId"\r
+                         value="${package.version}.${package.tstamp}${package.type}" />\r
+\r
+               <property name="package.name"\r
+                         value="${package.prefix}-${package.releaseId}" />\r
+\r
+               <mkdir dir="${dist.jar}" />\r
+               <mkdir dir="${dist.base}" />\r
+               <mkdir dir="${package.base}" />\r
+               <mkdir dir="${compile.base}" />\r
+\r
+               <echo message="Build of ${package.name} started." />\r
+       </target>\r
+\r
+       <target name="build.main" depends="initInternal,init">\r
+               <compile artifact="${main.artifact}" srcdir="${main.srcdir}" />\r
+       </target>\r
+\r
+       <target name="build.test" depends="build.main">\r
+               <compile artifact="${test.artifact}"\r
+                        srcdir="${test.srcdir}"\r
+                        classpathref="cp.test" />\r
+       </target>\r
+\r
+       <target name="jar.main" depends="build.test">\r
+               <createJar artifact="${main.artifact}" srcdir="${main.srcdir}" />\r
+       </target>\r
+\r
+       <target name="jar.test" depends="jar.main">\r
+               <createJar artifact="${test.artifact}" srcdir="${test.srcdir}" />\r
+       </target>\r
+\r
+       <target name="dist.unittest" depends="jar.test">\r
+       </target>\r
+\r
+       <target name="dist.package" depends="dist.unittest,dist.api,dist.dependencies">\r
+               <copy todir="${dist.base}">\r
+                       <fileset dir="src/main/config" includes="**/*" />\r
+               </copy>\r
+               <copy todir="${dist.lib}">\r
+                       <fileset dir="${dist.jar}" includes="*.jar" excludes="*-test.jar" />\r
+               </copy>\r
+\r
+               <zip destfile="${package.base}/${package.name}.zip">\r
+                       <zipfileset dir="${dist.base}" prefix="${package.prefix}-${package.version}">\r
+                               <include name="**/*" />\r
+                       </zipfileset>\r
+               </zip>\r
+       </target>\r
+\r
+       <target name="dist.dependencies" if="flag.withDependencies">\r
+               <copy todir="${dist.lib}">\r
+                       <fileset dir="${main.libdir}" includes="*.jar" />\r
+               </copy>\r
+\r
+       </target>\r
+\r
+       <target name="dist.api">\r
+               <api artifact="${main.artifact}" srcdir="${main.srcdir}">\r
+               </api>\r
+       </target>\r
+</project>
\ No newline at end of file
index e845b07197baebcbdda4a4033b4debe07e7dc47c..80e6acb031d222efba67971b37e76486a7688e5a 100644 (file)
@@ -136,13 +136,16 @@ public class SlcAntConfig {
         * \r
         * @param project\r
         *            the Ant <code>Project</code> being run.\r
+        * @return whether the project could be initialized for SLC usage (e.g.\r
+        *         presence of an SLC root file)\r
         */\r
-       public void initProject(Project project) {\r
+       public boolean initProject(Project project) {\r
                File projectBaseDir = project.getBaseDir();\r
                File slcRootFile = findSlcRootFile(projectBaseDir);\r
                if (slcRootFile == null) {\r
-                       throw new SlcAntException("Cannot find SLC root file");\r
+                       return false;\r
                }\r
+               \r
                // pass the project properties through the System properties\r
                System.getProperties().putAll((Map<?, ?>) project.getUserProperties());\r
                Properties all = prepareAllProperties(slcRootFile);\r
@@ -152,6 +155,7 @@ public class SlcAntConfig {
                                project.setUserProperty(key, all.getProperty(key));\r
                        }\r
                }\r
+               return true;\r
        }\r
 \r
        /**\r
@@ -165,7 +169,7 @@ public class SlcAntConfig {
         */\r
        protected Properties prepareAllProperties(File slcRootFile) {\r
                try {\r
-                       final String fileUrlPrefix ="";\r
+                       final String fileUrlPrefix = "";\r
 \r
                        Properties all = new Properties();\r
                        all.putAll(System.getProperties());\r
index b0f9fabb013d78c9c298f53167079fe31265377b..cefa61f69ab4e4ff462046393f2f5df0a60ed94f 100644 (file)
@@ -46,7 +46,12 @@ public class SlcProjectHelper extends ProjectHelperImpl {
 \r
                // initialize config\r
                SlcAntConfig slcAntConfig = new SlcAntConfig();\r
-               slcAntConfig.initProject(project);\r
+               \r
+               if(!slcAntConfig.initProject(project)){\r
+                       // not SLC compatible, do normal Ant\r
+                       super.parse(project, source);\r
+                       return;\r
+               }\r
 \r
                if (log == null) {\r
                        // log4j is initialized only now\r