Author: jim.ma
Date: 2010-12-28 06:34:01 -0500 (Tue, 28 Dec 2010)
New Revision: 13530
Modified:
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/tools/CXFConsumerImpl.java
Log:
[JBWS-3193]:Generated the source file into output directory when there is --noCompile flag
and without --keep flag
Modified:
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/tools/CXFConsumerImpl.java
===================================================================
---
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/tools/CXFConsumerImpl.java 2010-12-24
08:26:12 UTC (rev 13529)
+++
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/tools/CXFConsumerImpl.java 2010-12-28
11:34:01 UTC (rev 13530)
@@ -165,7 +165,7 @@
sourceDir = outputDir;
}
- if (sourceDir != null)
+ if (sourceDir != null && generateSource)
{
if (!sourceDir.exists() && !sourceDir.mkdirs())
throw new IllegalStateException("Could not make directory: " +
sourceDir.getName());
@@ -205,9 +205,17 @@
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