Author: rmarroquin
Date: Sun Mar 30 18:31:37 2014
New Revision: 1583181
URL: http://svn.apache.org/r1583181
Log:
GORA-313. Gora-Compiler and Gora-Compiler-CLI should print some messages about
the compilation result.
Modified:
gora/branches/GORA_94/gora-compiler-cli/src/main/java/org/apache/gora/compiler/cli/GoraCompilerCLI.java
gora/branches/GORA_94/gora-compiler/src/main/java/org/apache/gora/compiler/GoraCompiler.java
Modified:
gora/branches/GORA_94/gora-compiler-cli/src/main/java/org/apache/gora/compiler/cli/GoraCompilerCLI.java
URL:
http://svn.apache.org/viewvc/gora/branches/GORA_94/gora-compiler-cli/src/main/java/org/apache/gora/compiler/cli/GoraCompilerCLI.java?rev=1583181&r1=1583180&r2=1583181&view=diff
==============================================================================
---
gora/branches/GORA_94/gora-compiler-cli/src/main/java/org/apache/gora/compiler/cli/GoraCompilerCLI.java
(original)
+++
gora/branches/GORA_94/gora-compiler-cli/src/main/java/org/apache/gora/compiler/cli/GoraCompilerCLI.java
Sun Mar 30 18:31:37 2014
@@ -54,6 +54,7 @@ public class GoraCompilerCLI {
}
try {
GoraCompiler.compileSchema(inputs, outputDir);
+ System.out.println("Compiler executed SUCCESSFULL.");
} catch (IOException e) {
System.err.println("Error while compiling schema files. Check that the
schemas are properly formatted.");
printHelp();
Modified:
gora/branches/GORA_94/gora-compiler/src/main/java/org/apache/gora/compiler/GoraCompiler.java
URL:
http://svn.apache.org/viewvc/gora/branches/GORA_94/gora-compiler/src/main/java/org/apache/gora/compiler/GoraCompiler.java?rev=1583181&r1=1583180&r2=1583181&view=diff
==============================================================================
---
gora/branches/GORA_94/gora-compiler/src/main/java/org/apache/gora/compiler/GoraCompiler.java
(original)
+++
gora/branches/GORA_94/gora-compiler/src/main/java/org/apache/gora/compiler/GoraCompiler.java
Sun Mar 30 18:31:37 2014
@@ -59,13 +59,14 @@ public class GoraCompiler extends Specif
Schema.Parser parser = new Schema.Parser();
for (File src : srcFiles) {
+ System.out.println("Compiling: " + src.getAbsolutePath());
Schema originalSchema = parser.parse(src);
Map<Schema,Schema> queue = new HashMap<Schema,Schema>();
Schema newSchema = getSchemaWithDirtySupport(originalSchema, queue);
GoraCompiler compiler = new GoraCompiler(newSchema);
compiler.setTemplateDir("/org/apache/gora/compiler/templates/");
compiler.compileToDestination(src, dest);
-
+ System.out.println("Compiled into: " + dest.getAbsolutePath());
}
}