litesoft
Diff Revisions
546
vs
547
for /trunk/Java/ScarPlus/src/com/esotericsoftware/scar/Scar.java
|
@@ -24,9 +24,10 @@ |
24 |
24 |
|
/** |
25 |
25 |
|
* Provides utility methods for common Java build tasks. |
26 |
26 |
|
*/ |
|
27 |
+ |
@SuppressWarnings({"ResultOfMethodCallIgnored"}) |
27 |
28 |
|
public class Scar extends Utils implements ProjectFactory |
28 |
29 |
|
{ |
29 |
|
- |
public static final String VERSION = "2.0"; |
|
30 |
+ |
public static final String VERSION = "2.1"; |
30 |
31 |
|
|
31 |
32 |
|
public static final String DEFAULT_PROJECT_FILE_NAME = "Build"; |
32 |
33 |
|
|
|
@@ -1323,29 +1324,29 @@ |
1323 |
1324 |
|
} |
1324 |
1325 |
|
} |
1325 |
1326 |
|
|
1326 |
|
- |
/** |
1327 |
|
- |
* Executes Java code in the specified project's document, if any. |
1328 |
|
- |
* |
1329 |
|
- |
* @return true if code was executed. |
1330 |
|
- |
*/ |
1331 |
|
- |
public boolean executeDocument( Project project ) |
1332 |
|
- |
{ |
1333 |
|
- |
String code = null; // todo: was -- project.getDocument(); |
1334 |
|
- |
if ( code == null || code.trim().isEmpty() ) |
1335 |
|
- |
{ |
1336 |
|
- |
return false; |
1337 |
|
- |
} |
1338 |
|
- |
HashMap<String, Object> parameters = new HashMap<String, Object>(); |
1339 |
|
- |
parameters.put( "project", project ); |
1340 |
|
- |
executeCode( project, code, parameters ); |
1341 |
|
- |
return true; |
1342 |
|
- |
} |
1343 |
|
- |
|
1344 |
|
- |
/** |
1345 |
|
- |
* List of project names that have been built. {@link #buildDependencies(Project)} will skip any projects with a matching name. |
1346 |
|
- |
*/ |
1347 |
|
- |
static public final List<String> builtProjects = new ArrayList<String>(); |
|
1327 |
+ |
// /** |
|
1328 |
+ |
// * Executes Java code in the specified project's document, if any. |
|
1329 |
+ |
// * |
|
1330 |
+ |
// * @return true if code was executed. |
|
1331 |
+ |
// */ |
|
1332 |
+ |
// public boolean executeDocument( Project project ) |
|
1333 |
+ |
// { |
|
1334 |
+ |
// String code = null; // todo: was -- project.getDocument(); |
|
1335 |
+ |
// if ( code == null || code.trim().isEmpty() ) |
|
1336 |
+ |
// { |
|
1337 |
+ |
// return false; |
|
1338 |
+ |
// } |
|
1339 |
+ |
// HashMap<String, Object> parameters = new HashMap<String, Object>(); |
|
1340 |
+ |
// parameters.put( "project", project ); |
|
1341 |
+ |
// executeCode( project, code, parameters ); |
|
1342 |
+ |
// return true; |
|
1343 |
+ |
// } |
1348 |
1344 |
|
|
|
1345 |
+ |
// /** |
|
1346 |
+ |
// * List of project names that have been built. {@link #buildDependencies(Project)} will skip any projects with a matching name. |
|
1347 |
+ |
// */ |
|
1348 |
+ |
// static public final List<String> builtProjects = new ArrayList<String>(); |
|
1349 |
+ |
// |
1349 |
1350 |
|
static |
1350 |
1351 |
|
{ |
1351 |
1352 |
|
Paths.addDefaultGlobExcludes( "**/.svn/**" ); |