Changeset 113
- Timestamp:
- 02/22/07 11:48:01 (6 years ago)
- Location:
- jala/trunk/util/HopKit
- Files:
-
- 5 removed
- 3 modified
-
build.bat (modified) (2 diffs)
-
build.sh (modified) (2 diffs)
-
lib.xml (modified) (7 diffs)
-
lib/ant-apache-bsf.jar (deleted)
-
lib/ant-commons-logging.jar (deleted)
-
lib/ant-contrib.jar (deleted)
-
lib/ant-launcher.jar (deleted)
-
lib/ant.jar (deleted)
Legend:
- Unmodified
- Added
- Removed
-
jala/trunk/util/HopKit/build.bat
r79 r113 25 25 @echo off 26 26 27 REM -------------------------------------------- 28 REM buildfile for ant 1.6.5 29 REM -------------------------------------------- 27 rem This is build.bat for Ant 1.7 30 28 31 rem set JAVA_HOME=c:\programme\Java\jre1.5.0_05 29 rem Define the path to the ANT binary directory 30 rem (traling slash is mandatory!) 31 rem set ANT_HOME=%PROGRAMFILES%\Apache Group\apache-ant-1.7.0\bin\ 32 32 33 REM -------------------------------------------- 34 REM No need to edit anything past here 35 REM -------------------------------------------- 33 rem ========================================================================== 34 rem No need to edit anything past here 36 35 37 38 rem ---- store path of this script as BUILD_HOME 36 rem store path of this script as BUILD_HOME 39 37 set BUILD_HOME=%~dp0 40 38 41 rem ----Slurp the command line arguments. This loop allows for an unlimited number42 rem ----of arguments (up to the command line limit, anyway).39 rem Slurp the command line arguments. This loop allows for an unlimited number 40 rem of arguments (up to the command line limit, anyway). 43 41 set ANT_CMD_LINE_ARGS=%1 44 if ""%1""=="""" goto final42 if ""%1""=="""" goto runAnt 45 43 shift 46 44 :setupArgs 47 if ""%1""=="""" goto final48 if ""%1""==""-noclasspath"" goto final45 if ""%1""=="""" goto runAnt 46 if ""%1""==""-noclasspath"" goto runAnt 49 47 set ANT_CMD_LINE_ARGS=%ANT_CMD_LINE_ARGS% %1 50 48 shift 51 49 goto setupArgs 52 50 53 54 :final 55 51 :runAnt 56 52 57 53 rem ---- if there is no build.xml in the working directory, use the library … … 61 57 ) 62 58 63 echo buildhome: %BUILD_HOME% 64 if "%JAVA_HOME%" == "" goto javahomeerror 59 echo BUILD_HOME: %BUILD_HOME% 65 60 66 set CP=%CLASSPATH%;%BUILD_HOME%lib/ant-launcher.jar 67 68 echo CLASSPATH: "%CP%" 69 echo JAVA_HOME: "%JAVA_HOME%" 70 71 "%JAVA_HOME%\bin\java.exe" -classpath "%CP%" %APPNAME% "-Dant.home=." "-Dbasedir=." org.apache.tools.ant.launch.Launcher -propertyfile "%CD%\build.properties" %ANT_CMD_LINE_ARGS% 72 73 goto end 74 75 76 REM -----------ERROR------------- 77 :javahomeerror 78 echo "ERROR: JAVA_HOME not found in your environment." 79 echo "Please, set the JAVA_HOME variable in your environment to match the" 80 echo "location of the Java Virtual Machine you want to use." 61 ant -Dant.home=. -Dbasedir=. -lib "%BUILD_HOME%\lib" -propertyfile "%CD%\build.properties" %ANT_CMD_LINE_ARGS% 81 62 82 63 :end 83 -
jala/trunk/util/HopKit/build.sh
r79 r113 25 25 26 26 #-------------------------------------------- 27 # buildfile for ant 1. 6.527 # buildfile for ant 1.7.0 28 28 #-------------------------------------------- 29 if test -z "${ JAVA_HOME}" ; then30 echo "ERROR: JAVA_HOME not found in your environment."31 echo "Please, set the JAVA_HOME variable in your environment to match the"32 echo "location of the Java Virtual Machineyou want to use."29 if test -z "${ANT_HOME}" ; then 30 echo "ERROR: ANT_HOME not found in your environment." 31 echo "Please, set the ANT_HOME variable in your environment to match the" 32 echo "location of the Apache Ant installation you want to use." 33 33 exit 34 34 fi … … 57 57 fi 58 58 59 CP="${CLASSPATH}:${BUILD_HOME}/lib/ant-launcher.jar" 60 61 "${JAVA_HOME}/bin/java" -classpath "${CP}" -Dant.home="${BUILD_HOME}" -Dbasedir="${PWD}" org.apache.tools.ant.launch.Launcher -propertyfile "${PWD}/build.properties" -file "${BUILD_XML}" ${ANT_CMD_LINE_ARGS} 59 "${ANT_HOME}/bin/ant -Dant.home="${BUILD_HOME}" -Dbasedir="${PWD}" -lib "${BUILD_HOME}/lib" -propertyfile "${PWD}\build.properties" ${ANT_CMD_LINE_ARGS} 62 60 63 61 exit -
jala/trunk/util/HopKit/lib.xml
r79 r113 2 2 3 3 <project name="jala-utils" default="usage"> 4 5 <taskdef resource="net/sf/antcontrib/antlib.xml"/>6 4 7 5 <property environment="env"/> … … 19 17 <target name="usage"> 20 18 <echo message="" /> 21 <echo message=" available targets are:" />22 <echo message=" jslint -> run jslint on the current directory (validation)" />23 <echo message=" docs -> run jsdoc on a helma application" />24 <echo message=" pot -> parse i18n methods out of function files and skins and" />25 <echo message=" create sa gettext template file." />26 <echo message=" messages -> compile gnu gettext .po files into javascript message files" />19 <echo message=" Available targets are:" /> 20 <echo message=" jslint -> Run jslint on the current directory (validation)" /> 21 <echo message=" docs -> Run jsdoc on a helma application" /> 22 <echo message=" pot -> Parse i18n methods out of function files and skins and" /> 23 <echo message=" create a gettext template file." /> 24 <echo message=" messages -> Compile Gnu PO-files into JavaScript message files" /> 27 25 <echo message="" /> 28 <echo message=" macro definitions that can be used in other build files:" />26 <echo message=" Macro definitions that can be used in other build files:" /> 29 27 <echo message=" - jslint" /> 30 28 <echo message=" - jsdoc" /> 31 29 <echo message=" - jsmin" /> 32 30 <echo message="" /> 33 <echo message=" See comments inside th e build.xml filefor more details." />34 <echo message="---------------------------------------------------------- -----" />31 <echo message=" See comments inside this file (lib.xml) for more details." /> 32 <echo message="----------------------------------------------------------" /> 35 33 <echo message="" /> 36 34 <echo message="" /> … … 53 51 <!-- =================================================================== --> 54 52 <target name="jsdoc"> 55 <echo message="Creating javascript docs with jsdoc on ${user.dir}" />53 <echo message="Creating JavaScript docs with JSDoc on ${user.dir}" /> 56 54 <property name="jsdoc.projectName" value="" /> 57 55 <input message="Destination directory (docs):" … … 91 89 <!-- =================================================================== --> 92 90 <target name="pot"> 93 <input message=" Template file to generate (messages.pot):"91 <input message="Name of the template file to generate:" 94 92 addproperty="i18n.template" defaultvalue="messages.pot" /> 95 93 <echo message="Using '${i18n.template}' as output" /> 96 <input message="Directories containing code/skins (separate with spaces):"94 <input message="Directories containing code/skins separated by spaces:" 97 95 addproperty="i18n.scan" /> 98 96 <!-- convert inputs to absolute paths --> … … 112 110 <!-- =================================================================== --> 113 111 <target name="messages"> 114 <input message="Directory containing .pofiles:"112 <input message="Directory containing PO-files:" 115 113 addproperty="i18n.poDirectory" /> 116 114 <input message="Destination directory for generated message files:" … … 121 119 <property name="src" location="${i18n.poDirectory}" /> 122 120 <property name="dest" location="${i18n.destination}" /> 123 <echo message="Generating message files from .pofiles in '${src}'..." />121 <echo message="Generating message files from PO-files in '${src}'..." /> 124 122 <echo message="Using '${dest}' as output directory" /> 125 123 <java classname="org.mozilla.javascript.tools.shell.Main"> … … 169 167 <attribute name="projectName" /> 170 168 <sequential> 171 <echo message="Generating API docsfor Helma application in @{srcdir}" />169 <echo message="Generating API specification for Helma application in @{srcdir}" /> 172 170 <property name="workHelmadoc" value="${work}/helmadocs-worker" /> 173 171 <mkdir dir="${workHelmadoc}" />
![(please configure the [header_logo] section in trac.ini)](/jala/chrome/common/trac_banner.png)