mirror of https://github.com/apache/maven.git
o adding snippets for a guide
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@326311 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cca7503b05
commit
6eb39b64ef
|
@ -27,6 +27,7 @@ import java.io.FileReader;
|
|||
import java.security.Permission;
|
||||
import java.util.StringTokenizer;
|
||||
|
||||
// START SNIPPET: generate-sources-0
|
||||
/**
|
||||
* @goal generate
|
||||
* @phase generate-sources
|
||||
|
@ -124,13 +125,15 @@ public class AntlrPlugin
|
|||
System.setSecurityManager( oldSm );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ( project != null )
|
||||
{
|
||||
project.addCompileSourceRoot( outputDirectory );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// END SNIPPET: generate-sources-0
|
||||
|
||||
protected File getGeneratedFile( String grammar, String outputDirectory )
|
||||
throws Exception
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue