Re: svn commit: r354209 - in /ant/core/trunk: CONTRIBUTORS WHATSNEW contributors.xml docs/manual/running.html src/script/ant.bat

2006-10-21 Thread Martijn Kruithof

Antoine Levy-Lambert schreef:


[EMAIL PROTECTED] wrote:

 


Modified: ant/core/trunk/CONTRIBUTORS
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/CONTRIBUTORS?rev=354209&r1=354208&r2=354209&view=diff
==
Binary files - no diff available.



   


Does anybody know why CONTRIBUTORS is binary ?

Good evening,

Antoine

-
To unsubscribe, e-mail: [EMAIL PROTECTED]


For additional commands, e-mail: [EMAIL PROTECTED]

Because of the entering of the names of contributors containing 
character like (but not limited to) èæ etc. in UTF-8 encoding.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: svn commit: r354209 - in /ant/core/trunk: CONTRIBUTORS WHATSNEW contributors.xml docs/manual/running.html src/script/ant.bat

2005-12-05 Thread Stefan Bodewig
On Mon, 05 Dec 2005, Antoine Levy-Lambert <[EMAIL PROTECTED]> wrote:

> Does anybody know why CONTRIBUTORS is binary ?

The svn:mime-type property explicitly says application/octet-stream.

I vaguely recall that we had problems with different editors
destroying the encoding of the file (a bunch of international
characters in there).  That's why we marked it up as binary in CVS and
the current properties will be the result of the CVS->svn migration.

Stefan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: svn commit: r354209 - in /ant/core/trunk: CONTRIBUTORS WHATSNEW contributors.xml docs/manual/running.html src/script/ant.bat

2005-12-05 Thread Dominique Devienne
> >Modified: ant/core/trunk/CONTRIBUTORS
> >URL: 
> >http://svn.apache.org/viewcvs/ant/core/trunk/CONTRIBUTORS?rev=354209&r1=354208&r2=354209&view=diff
> >==
> >Binary files - no diff available.
> >
> >
> >
> Does anybody know why CONTRIBUTORS is binary ?

Let me guess: I screwed it up when I edited it... I'm still a bit
flacky with SVN, sorry. --DD

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: svn commit: r354209 - in /ant/core/trunk: CONTRIBUTORS WHATSNEW contributors.xml docs/manual/running.html src/script/ant.bat

2005-12-05 Thread Antoine Levy-Lambert
[EMAIL PROTECTED] wrote:

>Modified: ant/core/trunk/CONTRIBUTORS
>URL: 
>http://svn.apache.org/viewcvs/ant/core/trunk/CONTRIBUTORS?rev=354209&r1=354208&r2=354209&view=diff
>==
>Binary files - no diff available.
>
>  
>
Does anybody know why CONTRIBUTORS is binary ?

Good evening,

Antoine

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r354209 - in /ant/core/trunk: CONTRIBUTORS WHATSNEW contributors.xml docs/manual/running.html src/script/ant.bat

2005-12-05 Thread antoine
Author: antoine
Date: Mon Dec  5 14:28:46 2005
New Revision: 354209

URL: http://svn.apache.org/viewcvs?rev=354209&view=rev
Log:
Fix for Bugzilla 13655. Thanks to Simon Law. Proper return code for ant.bat

Modified:
ant/core/trunk/CONTRIBUTORS
ant/core/trunk/WHATSNEW
ant/core/trunk/contributors.xml
ant/core/trunk/docs/manual/running.html
ant/core/trunk/src/script/ant.bat

Modified: ant/core/trunk/CONTRIBUTORS
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/CONTRIBUTORS?rev=354209&r1=354208&r2=354209&view=diff
==
Binary files - no diff available.

Modified: ant/core/trunk/WHATSNEW
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/WHATSNEW?rev=354209&r1=354208&r2=354209&view=diff
==
--- ant/core/trunk/WHATSNEW (original)
+++ ant/core/trunk/WHATSNEW Mon Dec  5 14:28:46 2005
@@ -166,6 +166,8 @@
 * PropertySet API setMapper(...) didn't properly set up the Mapper.
   Bugzilla report 37760.
 
+* Proper return code for ant.bat. Bugzilla report 13655.  
+
 Other changes:
 --
 * New task  converts a path into a property

Modified: ant/core/trunk/contributors.xml
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/contributors.xml?rev=354209&r1=354208&r2=354209&view=diff
==
--- ant/core/trunk/contributors.xml (original)
+++ ant/core/trunk/contributors.xml Mon Dec  5 14:28:46 2005
@@ -837,6 +837,10 @@
Sebastian
Kantha

+  
+  Simon
+  Law
+  

Stefan
Bodewig

Modified: ant/core/trunk/docs/manual/running.html
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/docs/manual/running.html?rev=354209&r1=354208&r2=354209&view=diff
==
--- ant/core/trunk/docs/manual/running.html (original)
+++ ant/core/trunk/docs/manual/running.html Mon Dec  5 14:28:46 2005
@@ -445,7 +445,14 @@
 properties that begin with these prefixes. This protects you from future
 Ant releases breaking your build file.
 
-
+return code
+the ant start up scripts (in their Windows and Unix version) return
+the return code of the java program. So a successful build returns 0,
+failed builds return other values.
+
+Under Windows95 and 98, a special environment variable ANT_ERROR will be set
+by the script ant.bat, because it is not possible to exit the script with a
+specific errorlevel.
 
 Cygwin Users
 The Unix launch script that come with Ant works correctly with Cygwin. You

Modified: ant/core/trunk/src/script/ant.bat
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/src/script/ant.bat?rev=354209&r1=354208&r2=354209&view=diff
==
--- ant/core/trunk/src/script/ant.bat (original)
+++ ant/core/trunk/src/script/ant.bat Mon Dec  5 14:28:46 2005
@@ -92,14 +92,23 @@
 if "%_USE_CLASSPATH%"=="no" goto runAntNoClasspath
 if not "%CLASSPATH%"=="" goto runAntWithClasspath
 "%_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%
+rem Check the error code of the Ant build
+if not "%OS%"=="Windows_NT" goto onError
+set ANT_ERROR=%ERRORLEVEL%
 goto end
 
 :runAntNoClasspath
 "%_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%
+rem Check the error code of the Ant build
+if not "%OS%"=="Windows_NT" goto onError
+set ANT_ERROR=%ERRORLEVEL%
 goto end
 
 :runAntWithClasspath
 "%_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%
+rem Check the error code of the Ant build
+if not "%OS%"=="Windows_NT" goto onError
+set ANT_ERROR=%ERRORLEVEL%
 goto end
 
 :runAntWithJikes
@@ -108,19 +117,57 @@
 
 :runAntWithJikesNoClasspath
 "%_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%
+rem Check the error code of the Ant build
+if not "%OS%"=="Windows_NT" goto onError
+set ANT_ERROR=%ERRORLEVEL%
 goto end
 
 :runAntWithJikesAndClasspath
 "%_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%
+rem Check the error code of the Ant build
+if not "%OS%"=="Windows_NT" goto onError
+set ANT_ERROR=%ERRORLEVEL%
 goto end
 
+:onError
+rem Windows 9x way of checking the error code.  It matches via brute force.
+for %%i in (1 10 100) do set err%%i=
+for %%i in (0 1 2) do