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:
Jason van Zyl 2005-10-19 00:50:08 +00:00
parent cca7503b05
commit 6eb39b64ef
1 changed files with 5 additions and 2 deletions

View File

@ -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
{