Note that there are some explanatory texts on larger screens.

plurals
  1. POCheckstyle Issues in Build
    text
    copied!<p>I am having trouble with adding checkstyle to my build file. I have been attempting to follow the tutorial at <a href="http://checkstyle.sourceforge.net/anttask.html" rel="nofollow noreferrer">http://checkstyle.sourceforge.net/anttask.html</a> as well as look at examples of code that use checkstyles and find solutions to my problem (such as <a href="https://stackoverflow.com/questions/9638019/no-output-from-checkstyle-in-ant">No output from Checkstyle in ANT</a>), but when I ant build the file (terminal command ant compile jar run), nothing along the lines of checkstyle seems to happen. I think I've inserted the packages in the correct directories. Here is part of my buildfile code:</p> <pre><code>&lt;property name="checkstyle.dir" location="home/lakers/NoteTaker/analysis/bin/checkstyle-5.6" /&gt; </code></pre> <p>...</p> <pre><code> &lt;target name="checkstyle"&gt; &lt;taskdef resource="checkstyletask.properties"&gt; &lt;classpath&gt; &lt;pathelement location="home/lakers/NoteTaker/analysis/bin"/&gt; &lt;pathelement location ="home/lakers/NoteTaker/analysis/bin/checkstyle-5.6/checkstyle-5.6-all.jar"/&gt; &lt;/classpath&gt; &lt;/taskdef&gt; &lt;echo&gt;Starting checkstyle&lt;/echo&gt; &lt;checkstyle config="sun_checks.xml" failOnViolation="false"&gt; &lt;fileset dir="src" includes="**/*.java"/&gt; &lt;fileset dir="NoteTaker/NoteTaker/src/notetaker" includes="**/*.java"/&gt; &lt;formatter type="plain"/&gt; &lt;/checkstyle&gt; &lt;echo&gt;Checkstyle finished&lt;/echo&gt; &lt;/target&gt; </code></pre> <p>If anything I said is unclear, please let me know and I will try to clarify. Your help is greatly appreciated. :)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload