Logging a bug at:
https://issues.apache.org/jira/browse/CXF
and attaching a patch would be a huge help.  

Thanks!
Dan


On Tuesday 26 August 2008 9:41:02 am ptr106 wrote:
> When using GroovyWS (which uses CXF 2.0.5) I get an error in the
> DynamicClientFactory:
>
>  javac: invalid flag:
> C:/DOCUME~1/USER/LOCALS~1/Temp/org.apache.cxf.endpoint.dynamic.DynamicClien
>[EMAIL PROTECTED]
>
> You can look at my post here for more information:
>
> http://www.nabble.com/GroovyWS---invalid-flag-td19108767.html
>
> I've upgraded to CXF 2.0.8 and I still get the same error.  I've tracked it
> down to this piece of code in DynamicClientFactory:
>
>     static boolean compileJavaSrc(Path classPath, Path srcPath, String
> dest) {
>         String[] srcList = srcPath.list();
>         String[] javacCommand = new String[srcList.length + 7];
>
>         javacCommand[0] = "javac";
>         javacCommand[1] = "-classpath";
>         javacCommand[2] = classPath.toString();
>         javacCommand[3] = "-d";
> ...
>
> There is no check to see if the classpath is empty.  If it is, then the
> resulting javac call looks like this: "javac -classpath -d ..." and it
> treats -d as the classpath instead of a flag.  Perhaps the classpath flag
> should be omitted if the classpath is empty?  Or, could a warning be thrown
> if the classpath is not optional?
>
> Thanks,
> Peter



-- 
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to