Open GoogleCodeExporter opened 9 years ago
This same example works OK via command-line invocation:
java -jar lib/jslint4java-2.0.5.jar HelloWorld.json
Attempting to apply jslint4java under Ant using a similar <java> invocation
fails:
<java classpath="${jslint.jar}" fork="${fork}">
<arg value="HelloWorld.json"/>
</java>
> build.xml:1543: Classname must not be null.
after some sleuthing, found a modified version that works:
<java classname="com.googlecode.jslint4java.cli.Main" classpath="${jslint.jar}">
<arg value="HelloWorld.json"/>
</java>
This form of alternate invocation would be good to add to the jslint4java ant
page at
http://docs.jslint4java.googlecode.com/git/2.0.5/ant.html
Note that your top-level page still links to the older version of that page:
http://docs.jslint4java.googlecode.com/git/2.0.1/ant.html
p.s. Running jslint --help reveals that a fairly old version of jslint.js is
being used:
> using jslint version 2013-05-06
p.p.s. looking ahead, Douglas Crockford reports working on a rewritten version
of jslint:
https://plus.google.com/118095276221607585885/posts/aeJGSb7zheb
Original comment by don.brut...@gmail.com
on 10 Mar 2015 at 11:47
Original issue reported on code.google.com by
don.brut...@gmail.com
on 10 Mar 2015 at 11:10Attachments: