You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2005/10/13 09:12:05 UTC
svn commit: r320680 -
/maven/components/trunk/maven-plugins/maven-antlr-plugin/src/main/java/org/apache/maven/plugin/antlr/AntlrPlugin.java
Author: brett
Date: Thu Oct 13 00:12:00 2005
New Revision: 320680
URL: http://svn.apache.org/viewcvs?rev=320680&view=rev
Log:
add copyright
Modified:
maven/components/trunk/maven-plugins/maven-antlr-plugin/src/main/java/org/apache/maven/plugin/antlr/AntlrPlugin.java
Modified: maven/components/trunk/maven-plugins/maven-antlr-plugin/src/main/java/org/apache/maven/plugin/antlr/AntlrPlugin.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-plugins/maven-antlr-plugin/src/main/java/org/apache/maven/plugin/antlr/AntlrPlugin.java?rev=320680&r1=320679&r2=320680&view=diff
==============================================================================
--- maven/components/trunk/maven-plugins/maven-antlr-plugin/src/main/java/org/apache/maven/plugin/antlr/AntlrPlugin.java (original)
+++ maven/components/trunk/maven-plugins/maven-antlr-plugin/src/main/java/org/apache/maven/plugin/antlr/AntlrPlugin.java Thu Oct 13 00:12:00 2005
@@ -1,5 +1,21 @@
package org.apache.maven.plugin.antlr;
+/*
+ * Copyright 2001-2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
import antlr.Tool;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
@@ -32,7 +48,7 @@
*/
private File sourceDirectory;
- /**
+ /**
* @parameter expression="${project.build.directory}/generated-sources/antlr"
* @required
*/
@@ -87,12 +103,7 @@
generated.getParentFile().mkdirs();
}
- String[] args = new String[]
- {
- "-o",
- generated.getParentFile().getPath(),
- grammar.getPath(),
- };
+ String[] args = new String[]{"-o", generated.getParentFile().getPath(), grammar.getPath(),};
SecurityManager oldSm = System.getSecurityManager();
@@ -184,7 +195,8 @@
}
-class NoExitSecurityManager extends SecurityManager
+class NoExitSecurityManager
+ extends SecurityManager
{
static final NoExitSecurityManager INSTANCE = new NoExitSecurityManager();