compileTestGroovy.options.compilerArgs = ['-Xlint'] seems to be working but the following, equivalent option doesn't work.
compileTestGroovy.options.compilerArgs = ['-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=7777'] Is the value '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=7777' confusing gradle? On Sun, Dec 13, 2009 at 2:38 PM, Roshan Dawrani <[email protected]>wrote: > Hi, > I need to look into one groovy issue and for that I need to debug the > groovyc process that is forked by gradle. > > Could someone please let me know how to pass the compiler args in the > gradle script to do the same? > > I tried > > compileTestGroovy.options.compilerArgs = > [[value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=7777"]] > > (fails with > "org.codehaus.groovy.control.MultipleCompilationErrorsException: startup > failed, [-FXrunjdwp:transport=dt_sockeress=7777] (The system cannot find the > file specified)") > > and > > compileTestGroovy.options.compilerArgs = > ["-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=7777"] > > (fails with > "org.codehaus.groovy.control.MultipleCompilationErrorsException: startup > failed, Invalid commandline usage for > javac: invalid flag: > -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=7777 > Usage: javac <options> <source files> > where possible options include: > -g Generate all debugging info > ... > ") > > Thanks, > Roshan >
