Author: tfennelly
Date: 2009-12-04 11:58:34 -0500 (Fri, 04 Dec 2009)
New Revision: 19061
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/.classpath
trunk/smooks/plugins/org.jboss.tools.smooks.ui/.project
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksLauncher.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5389
Smooks Run Configuration should return some output even when no output is available
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/.classpath
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/.classpath 2009-12-04 16:55:57 UTC (rev
19060)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/.classpath 2009-12-04 16:58:34 UTC (rev
19061)
@@ -4,6 +4,8 @@
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="smooks-csv"/>
+ <classpathentry kind="src" path="smooks-core"/>
<classpathentry exported="true" kind="lib"
path="libs/dom4j-1.6.1.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/.project
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/.project 2009-12-04 16:55:57 UTC (rev
19060)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/.project 2009-12-04 16:58:34 UTC (rev
19061)
@@ -25,4 +25,16 @@
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
+ <linkedResources>
+ <link>
+ <name>smooks-core</name>
+ <type>2</type>
+ <location>/Users/tfennelly/milyn/trunk/smooks-core/src/main/java</location>
+ </link>
+ <link>
+ <name>smooks-csv</name>
+ <type>2</type>
+ <location>/Users/tfennelly/milyn/trunk/smooks-cartridges/csv/src/main/java</location>
+ </link>
+ </linkedResources>
</projectDescription>
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksLauncher.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksLauncher.java 2009-12-04
16:55:57 UTC (rev 19060)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksLauncher.java 2009-12-04
16:58:34 UTC (rev 19061)
@@ -70,6 +70,7 @@
try {
Set<ProcessNodeType> processNodeTypes =
SmooksLauncher.fromNodeTypeString(args[3]);
JavaResult javaResult = new JavaResult();
+ boolean nothingDisplayed = true;
if(processNodeTypes.contains(ProcessNodeType.TEMPLATING)) {
StringResult stringResult = new StringResult();
@@ -79,6 +80,7 @@
System.out.println(" |--");
System.out.println(indent(stringResult.toString()));
System.out.println(" |--\n");
+ nothingDisplayed = false;
} else {
smooks.filterSource(new StreamSource(new FileInputStream(input)), javaResult);
}
@@ -93,8 +95,14 @@
System.out.println(indent((new XStream()).toXML(binding.getValue())));
System.out.println(" |--");
}
+ nothingDisplayed = false;
}
+ if(nothingDisplayed) {
+ System.out.println("Nothing to Display:");
+ System.out.println(" - No Java Mappings.");
+ System.out.println(" - No Templates Applied.");
+ }
} finally {
smooks.close();
}