1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 package org.codehaus.mojo.ounce.core;
28
29 import java.util.List;
30 import java.util.Map;
31
32 import org.apache.maven.plugin.logging.Log;
33
34
35
36
37
38 public class OunceCoreConsole
39 implements OunceCore
40 {
41
42
43
44
45
46
47 public void createApplication( String baseDir, String theName, String theApplicationRoot, List theProjects,
48 Map ounceOptions, Log log )
49 throws OunceCoreException
50 {
51 System.out.println( "Create Application Params:" );
52 System.out.println( "Basedir: " + baseDir );
53 System.out.println( "Name: " + theName );
54 System.out.println( "Root: " + theApplicationRoot );
55 System.out.println( "Projects: " + theProjects );
56 System.out.println( "OunceOptions: " + ounceOptions );
57 }
58
59
60
61
62
63
64
65 public void createProject( String baseDir, String theName, String theProjectRoot, List theSourceRoots,
66 String theWebRoot, String theClassPath, String theJdkName, String theCompilerOptions,
67 String packaging, Map ounceOptions,
68 boolean analyzeStrutsFramework, boolean importStrutsValidation, Log log )
69 throws OunceCoreException
70 {
71 System.out.println( "Create Project Params:" );
72 System.out.println( "Basedir: " + baseDir );
73 System.out.println( "Name: " + theName );
74 System.out.println( "Root: " + theProjectRoot );
75 System.out.println( "JDK Name: " + theJdkName );
76 System.out.println( "SourceRoots: " + theSourceRoots );
77 System.out.println( "ClassPath: " + theClassPath );
78 System.out.println( "Webroot: " + theWebRoot );
79 System.out.println( "Packaging: " + packaging );
80 System.out.println( "CompilerOptions: " + theCompilerOptions );
81 System.out.println( "OunceOptions: " + ounceOptions );
82 }
83
84
85
86
87
88
89 public void scan( String applicationFile, String assessmentName, String assessmentOutput, String caller,
90 String reportType, String reportOutputType, String reportOutputLocation, boolean publish,
91 Map ounceOptions, String installDir, boolean wait, Log log )
92 throws OunceCoreException
93 {
94 System.out.println( "ApplicationFile: " + applicationFile );
95 System.out.println( "AssessmentName: " + assessmentName );
96 System.out.println( "AssessmentOutput: " + assessmentOutput );
97 System.out.println( "Caller: " + caller );
98 System.out.println( "ReportType: " + reportType );
99 System.out.println( "ReportOutputType: " + reportOutputType );
100 System.out.println( "ReportOutputLocation: " + reportOutputLocation );
101 System.out.println( "Publish:" + publish );
102 System.out.println( "OunceOptions: " + ounceOptions );
103 System.out.println( "OunceInstallDir: " + installDir );
104 System.out.println( "Wait: " + wait );
105 }
106
107
108
109
110
111
112 public OunceCoreApplication readApplication( String thePath, Log log )
113 throws OunceCoreException
114 {
115 log.info( "Read Application: Method not supported." );
116 return null;
117 }
118
119
120
121
122
123
124 public OunceCoreProject readProject( String thePath, Log log )
125 throws OunceCoreException
126 {
127 log.info( "Read Project: Method not supported." );
128 return null;
129 }
130
131 public void report( Log log )
132 throws OunceCoreException
133 {
134 log.info( "Report: Method not supproted." );
135 }
136
137 public void createPathVariables( Map pathVariableMap, String installDir, Log log )
138 throws OunceCoreException
139 {
140 log.info( "Create Path Variables: Method not supported." );
141 }
142
143 }