Author: jim.ma
Date: 2010-12-29 01:39:32 -0500 (Wed, 29 Dec 2010)
New Revision: 13532
Modified:
stack/cxf/branches/jbossws-cxf-3.1.2/modules/client/src/main/java/org/jboss/wsf/stack/cxf/tools/CXFConsumerImpl.java
Log:
[JBPAPP-5220]:JBossWS-'nocompile' and 'source' option for wsconsume
(command line) generates .java files into output directory not source directory
Modified:
stack/cxf/branches/jbossws-cxf-3.1.2/modules/client/src/main/java/org/jboss/wsf/stack/cxf/tools/CXFConsumerImpl.java
===================================================================
---
stack/cxf/branches/jbossws-cxf-3.1.2/modules/client/src/main/java/org/jboss/wsf/stack/cxf/tools/CXFConsumerImpl.java 2010-12-28
11:35:15 UTC (rev 13531)
+++
stack/cxf/branches/jbossws-cxf-3.1.2/modules/client/src/main/java/org/jboss/wsf/stack/cxf/tools/CXFConsumerImpl.java 2010-12-29
06:39:32 UTC (rev 13532)
@@ -154,7 +154,7 @@
sourceDir = outputDir;
}
- if (sourceDir != null)
+ if (sourceDir != null && generateSource)
{
if (!sourceDir.exists() && !sourceDir.mkdirs())
throw new IllegalStateException("Could not make directory: " +
sourceDir.getName());
@@ -194,8 +194,16 @@
throw new IllegalStateException("Could not make directory: " +
outputDir.getName());
// Always add the output directory and the wsdl location
- args.add("-classdir");
- args.add(outputDir.getAbsolutePath());
+ if (!nocompile)
+ {
+ args.add("-classdir");
+ args.add(outputDir.getAbsolutePath());
+ }
+ if (nocompile && !generateSource)
+ {
+ args.add("-d");
+ args.add(outputDir.getAbsolutePath());
+ }
// Always set the target
if (target != null)
Show replies by date