donaldp 02/02/14 03:16:53
Modified: proposal/myrmidon/src/java/org/apache/antlib/build
Patch.java
Log:
i18ned task
Revision Changes Path
1.6 +9 -3
jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/build/Patch.java
Index: Patch.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/build/Patch.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Patch.java 10 Feb 2002 01:01:11 -0000 1.5
+++ Patch.java 14 Feb 2002 11:16:53 -0000 1.6
@@ -9,6 +9,8 @@
import java.io.File;
import org.apache.aut.nativelib.ExecManager;
+import org.apache.avalon.excalibur.i18n.ResourceManager;
+import org.apache.avalon.excalibur.i18n.Resources;
import org.apache.myrmidon.api.AbstractTask;
import org.apache.myrmidon.api.TaskException;
import org.apache.myrmidon.framework.Execute;
@@ -23,6 +25,9 @@
public class Patch
extends AbstractTask
{
+ private final static Resources REZ =
+ ResourceManager.getPackageResources( Patch.class );
+
private File m_originalFile;
private File m_patchFile;
private boolean m_backups;
@@ -110,19 +115,20 @@
{
if( null == m_patchFile )
{
- final String message = "patchfile argument is required";
+ final String message = REZ.getString( "patch.missing-file.error"
);
throw new TaskException( message );
}
if( !m_patchFile.exists() )
{
- final String message = "patchfile " + m_patchFile + " doesn\'t
exist";
+ final String message = REZ.getString(
"patch.file-noexist.error", m_patchFile );
throw new TaskException( message );
}
if( null != m_strip && m_strip.intValue() < 0 )
{
- throw new TaskException( "strip has to be >= 0" );
+ final String message = REZ.getString( "patch.neg-strip.error" );
+ throw new TaskException( message );
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>