ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r530818 - in /ant/core/trunk/src: main/org/apache/tools/ant/taskdefs/ManifestTask.java tests/junit/org/apache/tools/ant/taskdefs/ManifestTest.java
Date Fri, 20 Apr 2007 14:07:12 GMT
Author: jhm
Date: Fri Apr 20 07:07:11 2007
New Revision: 530818

URL: http://svn.apache.org/viewvc?view=rev&rev=530818
Log:
Beautify error message.

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ManifestTask.java
    ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestTest.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ManifestTask.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ManifestTask.java?view=diff&rev=530818&r1=530817&r2=530818
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ManifestTask.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ManifestTask.java Fri Apr 20 07:07:11
2007
@@ -146,7 +146,7 @@
         char ch = name.charAt(0);
 
         if (ch == '-' || ch == '_') {
-            throw new BuildException("Manifest attribute names must not contain '" + ch +
"' at the begin.");
+            throw new BuildException("Manifest attribute names must not start with '" + ch
+ "'.");
         }
         
         for (int i = 0; i < name.length(); i++) {

Modified: ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestTest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestTest.java?view=diff&rev=530818&r1=530817&r2=530818
==============================================================================
--- ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestTest.java (original)
+++ ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestTest.java Fri Apr
20 07:07:11 2007
@@ -341,7 +341,7 @@
     }
 
     public void testIllegalNameBegin() {
-        expectBuildException("testIllegalNameInSection", "Manifest attribute names must not
contain '-' at the begin.");
+        expectBuildException("testIllegalNameInSection", "Manifest attribute names must not
start with '-' at the begin.");
     }
 
     public void testIllegalName2() {



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


Mime
View raw message