ounceCreateProject

ounceCreateProject accepts the following parameters and nested elements:

Parameters specified as attributes Description
name Name for the project.
workingDir Working directory for the project.
classpath Class path for the project.
sourcepath Source path for the project source dependencies. These files are not scanned for vulnerabilities.
jdkName AppScan® Source JDK name to use when scanning project. (Must be created in AppScan Source for Analysis)
appName Application that contains this project (optional).
appDir Application directory (optional)
Parameters specified as nested elements Description
ounceSourceRoot Specify the project source roots
ounceWeb Specify the project web content
ounceExclude Allows the exclusion of certain files from the file set specified in the parent element.

ounceCreateProject task example

<ounceCreateProject
	name="myProjectName"
	workingDir="${sandbox}/myProject"
	classpath="${my.class.path}"
	sourcepath="${my.source.path}"
	jdkName="jdk15"
	appName="myApp"
	appDir="${sandbox}>
<ounceSourceRoot dir="src"/>
<ounceExclude dir="src/test"/>
<ounceExclude file="src/mydir/Bad.java"/>
<ounceSourceRoot dir="src2"/>
<ounceSourceRoot file="src3/mydir.java"/>
<ounceWeb webContextRoot="web/myProject.war"/>
<ounceExclude dir="web/test"/>
<ounceExclude file="web/partial.jsp"/>
</ounceCreateProject>