| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9ae8e49 commit 9c90b7b
11 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,12 +9,6 @@ | |||
| 9 | 9 | <!-- Don't use or inherit the CLASSPATH environment variable for anything --> | |
| 10 | 10 | <property name="build.sysclasspath" value="ignore" /> | |
| 11 | 11 | ||
| 12 | - <property environment="env" /> | ||
| 13 | - <property name="java14-home" value="${env.JAVA14_HOME}" /> | ||
| 14 | - <property name="clover-jar" value="${env.CLOVER_JAR}" /> | ||
| 15 | - <property name="launch4j-home" value="${env.LAUNCH4J_HOME}" /> | ||
| 16 | - <property name="findbugs-home" value="${env.FINDBUGS_HOME}" /> | ||
| 17 | - | ||
| 18 | 12 | <!-- Extension containing various tools, including "for" and "if" --> | |
| 19 | 13 | <taskdef resource="net/sf/antcontrib/antlib.xml" classpath="lib/buildlib/ant-contrib.jar"/> | |
| 20 | 14 | ||
@@ -28,20 +22,12 @@ | |||
| 28 | 22 | <taskdef resource="com/cenqua/ant/antlib.xml" classpath="lib/buildlib/cenquatasks.jar" /> | |
| 29 | 23 | ||
| 30 | 24 | <!-- fornum task, used for test-repeat --> | |
| 31 | - <taskdef name="fornum" classname="edu.rice.cs.plt.ant.ForNumTask" classpath="lib/buildlib/plt-ant.jar" onerror="report" /> | ||
| 32 | - | ||
| 33 | - <!-- findbugs task --> | ||
| 34 | - <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="lib/buildlib/findbugs-ant.jar" /> | ||
| 35 | - | ||
| 36 | - <!-- launch4j task, used to create the Windows executable --> | ||
| 37 | - <taskdef name="launch4j" classname="net.sf.launch4j.ant.Launch4jTask"> | ||
| 38 | - <classpath> | ||
| 39 | - <pathelement location="${launch4j-home}/launch4j.jar" /> | ||
| 40 | - <pathelement location="${launch4j-home}/lib/xstream.jar" /> | ||
| 41 | - </classpath> | ||
| 42 | - </taskdef> | ||
| 25 | + <taskdef name="fornum" classname="edu.rice.cs.plt.ant.ForNumTask" classpath="lib/buildlib/plt-ant.jar" onerror="report"/> | ||
| 43 | 26 | ||
| 44 | 27 | <extendclasspath path="lib/buildlib/junit.jar" /> | |
| 28 | + <extendclasspath path="lib/buildlib/findbugs-ant.jar" /> | ||
| 29 | + | ||
| 30 | + <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask"/> | ||
| 45 | 31 | ||
| 46 | 32 | <!-- Load the property file if it exists --> | |
| 47 | 33 | <if> | |
@@ -62,6 +48,10 @@ | |||
| 62 | 48 | <property name="is-development" value="yes" /> <!-- Development or stable release --> | |
| 63 | 49 | <property name="tag-append" value="" /> <!-- "stable", "beta", or none --> | |
| 64 | 50 | ||
| 51 | + <property environment="env" /> | ||
| 52 | + <property name="java14-home" value="${env.JAVA14_HOME}" /> | ||
| 53 | + <property name="clover-jar" value="${env.CLOVER_JAR}" /> | ||
| 54 | + | ||
| 65 | 55 | <!-- Default settings for properties --> | |
| 66 | 56 | <property name="test-spec" value="*" /> | |
| 67 | 57 | <property name="test-repeat" value="1" /> | |
@@ -99,9 +89,6 @@ | |||
| 99 | 89 | <echo message="JAVA14_HOME: Home folder of the Java 1.4 JRE or J2SDK" /> | |
| 100 | 90 | <echo message="PATH: 'svn' needs to refer to the Subversion client executable" /> | |
| 101 | 91 | <echo message="CLOVER_JAR: Location of the Clover jar file" /> | |
| 102 | - <echo message="FINDBUGS_HOME: Location of the FindBugs installation" /> | ||
| 103 | - <echo message="LAUNCH4J_HOME: Location of the Launch4j installation (used to " /> | ||
| 104 | - <echo message=" generate a Windows application)." /> | ||
| 105 | 92 | <echo message="" /> | |
| 106 | 93 | <echo message="Ant may also require the following, depending on your platform:" /> | |
| 107 | 94 | <echo message="JAVA_HOME: Location of the JDK (many targets here require Java 5+)" /> | |
@@ -633,7 +620,7 @@ | |||
| 633 | 620 | <fail message="FindBugs installation not found, or FINDBUGS_HOME environment variable not set." | |
| 634 | 621 | unless="findbugs-exists" /> | |
| 635 | 622 | <delete file="${basedir}/findbugs.html" /> | |
| 636 | - <findbugs home="${findbugs-home}" | ||
| 623 | + <findbugs home="${env.FINDBUGS_HOME}" | ||
| 637 | 624 | output="html" | |
| 638 | 625 | jvmargs="-Xmx512M" | |
| 639 | 626 | failOnError="true" | |
@@ -928,14 +915,20 @@ | |||
| 928 | 915 | <delete dir="benchmarkSources" failonerror="${clean-can-fail}" /> | |
| 929 | 916 | <delete dir="benchmarkResults" failonerror="${clean-can-fail}" /> | |
| 930 | 917 | ||
| 931 | - <delete includeemptydirs="true" failonerror="${clean-can-fail}"> | ||
| 918 | + <delete failonerror="${clean-can-fail}"> | ||
| 932 | 919 | <fileset dir="testFiles"> | |
| 933 | 920 | <exclude name="**" /> | |
| 934 | 921 | <!-- Additional test output files should be listed here --> | |
| 935 | 922 | </fileset> | |
| 923 | + </delete> | ||
| 924 | + | ||
| 925 | + <delete includeemptydirs="true" failonerror="${clean-can-fail}"> | ||
| 936 | 926 | <fileset dir="${basedir}"> | |
| 937 | 927 | <patternset refid="generated-sources" /> | |
| 938 | 928 | </fileset> | |
| 929 | + </delete> | ||
| 930 | + | ||
| 931 | + <delete includeemptydirs="true" failonerror="${clean-can-fail}"> | ||
| 939 | 932 | <fileset dir="${basedir}" defaultexcludes="no"> | |
| 940 | 933 | <include name="TEST*" /> | |
| 941 | 934 | <include name="src/**/*.class" /> | |
@@ -950,7 +943,7 @@ | |||
| 950 | 943 | </delete> | |
| 951 | 944 | ||
| 952 | 945 | </target> | |
| 953 | - | ||
| 946 | + | ||
| 954 | 947 | <target name="clean-products" unless="skip-clean"> | |
| 955 | 948 | <echo message="Deleting all final build products" /> | |
| 956 | 949 | ||
@@ -961,10 +954,11 @@ | |||
| 961 | 954 | <include name="*.jar" /> | |
| 962 | 955 | <include name="*.zip" /> | |
| 963 | 956 | <include name="*.tar.gz" /> | |
| 964 | - <include name="findbugs.html" /> | ||
| 957 | + <include name="${ant.project.name}-*" /> | ||
| 965 | 958 | </fileset> | |
| 966 | 959 | </delete> | |
| 967 | - | ||
| 960 | + | ||
| 961 | + <delete file="${basedir}/findbugs.html" /> | ||
| 968 | 962 | </target> | |
| 969 | 963 | ||
| 970 | 964 | ||
@@ -1065,25 +1059,29 @@ | |||
| 1065 | 1059 | <mkdir dir="${mac-app-dir}" /> | |
| 1066 | 1060 | <filter token="VERSION" value="${version-tag}" /> | |
| 1067 | 1061 | <copy todir="${mac-app-dir}/${readable-project-name}.app" filtering="yes" > | |
| 1068 | - <fileset dir="packaging/mac/${readable-project-name}.app" excludes="**/*jar-goes-here" /> | ||
| 1062 | + <fileset dir="packaging/${readable-project-name}.app" excludes="**/*jar-goes-here" /> | ||
| 1069 | 1063 | </copy> | |
| 1070 | 1064 | <copy file="${ant.project.name}.jar" | |
| 1071 | 1065 | todir="${mac-app-dir}/${readable-project-name}.app/Contents/Resources/Java" /> | |
| 1072 | - <zip destfile="${version-tag}-osx.zip" basedir="${mac-app-dir}" /> | ||
| 1066 | + <tar tarfile="${mac-app-dir}/${version-tag}-osx.tar"> | ||
| 1067 | + <tarfileset dir="${mac-app-dir}" includes="${readable-project-name}.app/**" | ||
| 1068 | + excludes="${readable-project-name}.app/Contents/MacOS/${readable-project-name}" /> | ||
| 1069 | + <tarfileset dir="${mac-app-dir}" mode="755" | ||
| 1070 | + includes="${readable-project-name}.app/Contents/MacOS/${readable-project-name}" /> | ||
| 1071 | + </tar> | ||
| 1072 | + <gzip src="${mac-app-dir}/${version-tag}-osx.tar" destfile="${version-tag}-osx.tar.gz" /> | ||
| 1073 | 1073 | </target> | |
| 1074 | 1074 | ||
| 1075 | 1075 | <target name="windows-app" depends="assert-jar-exists, resolve-version-tag"> | |
| 1076 | - <echo message="Creating ${version-tag}-windows.zip" /> | ||
| 1077 | - <property name="windows-app-dir" value="${version-tag}/windows" /> | ||
| 1078 | - <mkdir dir="${windows-app-dir}" /> | ||
| 1079 | - <filter token="VERSION" value="${version-tag}" /> | ||
| 1080 | - <copy todir="${windows-app-dir}" filtering="yes" > | ||
| 1081 | - <fileset dir="packaging/windows" /> | ||
| 1082 | - </copy> | ||
| 1083 | - <copy file="${ant.project.name}.jar" todir="${windows-app-dir}" /> | ||
| 1084 | - <launch4j configfile="${windows-app-dir}/launch4j-config.xml" /> | ||
| 1085 | - <zip destfile="${version-tag}-windows.zip" basedir="${windows-app-dir}" | ||
| 1086 | - includes="${readable-project-name}.exe" /> | ||
| 1076 | + <echo message="Creating ${version-tag}.exe" /> | ||
| 1077 | + <concat destfile="${version-tag}.exe" binary="yes"> | ||
| 1078 | + <filelist dir="${basedir}"> | ||
| 1079 | + <!-- TODO: This should probably include WinExecutor.exe and the icon file | ||
| 1080 | + rather than using the generated WinExecutorFor... --> | ||
| 1081 | + <file name="packaging/WinExecutorFor${readable-project-name}.exe" /> | ||
| 1082 | + <file name="${ant.project.name}.jar" /> | ||
| 1083 | + </filelist> | ||
| 1084 | + </concat> | ||
| 1087 | 1085 | </target> | |
| 1088 | 1086 | ||
| 1089 | 1087 | <target name="src-zip" depends="resolve-version-tag"> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1122,6 +1122,7 @@ public void run() { | |||
| 1122 | 1122 | BalancingStreamTokenizer atok = new BalancingStreamTokenizer(new StringReader(attrList), '$'); | |
| 1123 | 1123 | atok.wordRange(0,255); | |
| 1124 | 1124 | atok.addQuotes("\"", "\""); | |
| 1125 | + atok.addQuotes("\"", "\""); | ||
| 1125 | 1126 | atok.addKeyword(";"); | |
| 1126 | 1127 | atok.addKeyword("="); | |
| 1127 | 1128 | // LOG.log("\tProcessing AttrList"); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments