Browse Source

(1) Fix <copy> task to point to the "correct" source directory.

(2) I think there are a couple of superfluos @ characters in Constants.java.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268532 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 24 years ago
parent
commit
46e21ab7d8
2 changed files with 13 additions and 4 deletions
  1. +11
    -2
      build.xml
  2. +2
    -2
      src/main/org/apache/tools/ant/Constants.java

+ 11
- 2
build.xml View File

@@ -214,6 +214,15 @@
-->
<target name="compile" depends="prepare">

<javac srcdir="${build.src}"
destdir="${build.classes}"
debug="${debug}"
deprecation="${deprecation}"
optimize="${optimize}" >
<classpath refid="classpath" />
<include name="${constants.file}" />
</javac>

<javac srcdir="${java.dir}"
destdir="${build.classes}"
debug="${debug}"
@@ -250,10 +259,10 @@
<exclude name="${optional.package}/sound/*.java" unless="jmf.present" />
</javac>

<copy file="${build.src}/${ant.package}/defaultManifest.mf"
<copy file="${java.dir}/${ant.package}/defaultManifest.mf"
todir="${build.classes}/${ant.package}" />
<copy file="${build.src}/${ant.package}/taskdefs/defaults.properties"
<copy file="${java.dir}/${ant.package}/taskdefs/defaults.properties"
todir="${build.classes}/${ant.package}/taskdefs" />

</target>


+ 2
- 2
src/main/org/apache/tools/ant/Constants.java View File

@@ -14,6 +14,6 @@ package org.apache.tools.ant;
*/
interface Constants
{
String DATE = "@@DATE@@";
String VERSION = "@@VERSION@@";
String DATE = "@DATE@";
String VERSION = "@VERSION@";
}

Loading…
Cancel
Save