ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Javadoc.java
Date Thu, 04 Apr 2002 10:31:18 GMT
bodewig     02/04/04 02:31:18

  Modified:    .        build.xml
               src/main/org/apache/tools/ant/taskdefs Javadoc.java
  Log:
  Make sure locale argument is the first one in javadoc
  
  PR: 4984
  
  Revision  Changes    Path
  1.279     +1 -0      jakarta-ant/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/build.xml,v
  retrieving revision 1.278
  retrieving revision 1.279
  diff -u -r1.278 -r1.279
  --- build.xml	4 Apr 2002 09:37:09 -0000	1.278
  +++ build.xml	4 Apr 2002 10:31:17 -0000	1.279
  @@ -1041,6 +1041,7 @@
                destdir="${build.javadocs}"
                author="true"
                version="true"
  +             locale="en"
                windowtitle="${Name} API"
                doctitle="${Name}">
         <tag name="todo" description="To do:" scope="all" />
  
  
  
  1.82      +4 -2      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javadoc.java
  
  Index: Javadoc.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javadoc.java,v
  retrieving revision 1.81
  retrieving revision 1.82
  diff -u -r1.81 -r1.82
  --- Javadoc.java	28 Mar 2002 12:15:27 -0000	1.81
  +++ Javadoc.java	4 Apr 2002 10:31:18 -0000	1.82
  @@ -480,8 +480,10 @@
       }
       public void setLocale(String src) {
           if (!javadoc1) {
  -            cmd.createArgument().setValue("-locale");
  -            cmd.createArgument().setValue(src);
  +            // createArgument(true) is necessary to make sure, -locale
  +            // is the first argument (required in 1.3+).
  +            cmd.createArgument(true).setValue(src);
  +            cmd.createArgument(true).setValue("-locale");
           }
       }
       public void setEncoding(String enc) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message