History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GROOVY-2809
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Danno Ferrin
Reporter: Hans Dockter
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

Setting certain nested javac arguments in groovyc leads to an exception.

Created: 05/May/08 12:16 AM   Updated: Sunday 08:49 AM
Component/s: Ant integration
Affects Version/s: 1.6-beta-1
Fix Version/s: 1.6-beta-2

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive groovyc16Bug.zip (2 kb)


Testcase included: yes


 Description  « Hide
ant = new AntBuilder()
ant.taskdef(name: 'groovyc', classname: 'org.codehaus.groovy.ant.Groovyc')
ant.delete(dir: "classes")
ant.mkdir(dir: "classes")
ant.groovyc(srcDir: 'src', destDir: 'classes') {
    javac(source: "1.4", target: "1.4", nowarn: 'on')
}

It does not matter whether I set nowarn to true, 'true', or 'on'. I get the exception in any case. The same happens for verbose and depend.

  [groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Invalid commandline usage for javac.
  [groovyc] javac: invalid flag: -nowarnon


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Danno Ferrin - 05/May/08 08:07 AM
easy fix, but I got a flight today, it may not hit SVN for 12 hours

Danno Ferrin - 05/May/08 11:41 AM
This fix also extends to the verbose option and the deprecation option (in case you would want those).

Good thing Denver Internationl airport supprots https iover the free wifi, the fix is in now.`