(no subject)
florent lebel <[email protected]> Fri, 27 Jul 2012 12:18:59 +0200 (CEST)
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Message-ID | <340414653.7549.1343384339599.JavaMail.www@wwinf1k21> |
--===============1107970792615168119== Content-Type: multipart/alternative; boundary="----=_Part_7548_2075312061.1343384339597" ------=_Part_7548_2075312061.1343384339597 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, =C2=A0 =C2=A0 I am currently trying to run Checkstyle on a directory which contains a lot= of files of various types and not only Java file. =C2=A0 =C2=A0java -Xmx1280m -jar checkstyle-5.5-all.jar -c my_config_checkstyle.xm= l -f xml -r c:/Exemple_Java Unfortunatly the directory contains some big files (zip, exe) which seem to= be taken in account by CheckStyle. So above command ends with the following message: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at java.util.Arrays.copyOfRange(= Unknown Source) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at java.lang.String.(Unknown Sou= rce) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at java.lang.StringBuilder.toStr= ing(Unknown Source) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at com.puppycrawl.tools.checksty= le.api.FileText.(FileText.java:146) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at com.puppycrawl.tools.checksty= le.Checker.process(Checker.java:259) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at com.puppycrawl.tools.checksty= le.Main.main(Main.java:121) =C2=A0 So my question is the following, how can I specified to checkStyle to only = take in account java files and not all files contains in my root directory? =C2=A0 Note that in my_config_checkstyle.xml I have specified the property name=3D= "fileExtensions" everywhere. but the tool seems to continue loading all fil= es. =C2=A0 I can't allocate more memory to CheckStyle. =C2=A0 Thanks a lot for any idea. =C2=A0 Florent ------=_Part_7548_2075312061.1343384339597 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit <p>Hi,</p> <p> </p> <p> </p> <p>I am currently trying to run Checkstyle on a directory which contains a lot of files of various types and not only Java file.</p> <p> </p> <p> java -Xmx1280m -jar checkstyle-5.5-all.jar -c my_config_checkstyle.xml -f xml -r c:/Exemple_Java</p> <p>Unfortunatly the directory contains some big files (zip, exe) which seem to be taken in account by CheckStyle.</p> <p>So above command ends with the following message:</p> <p>Exception in thread "main" java.lang.OutOfMemoryError: Java heap space<br /> at java.util.Arrays.copyOfRange(Unknown Source)<br /> at java.lang.String.<init>(Unknown Source)<br /> at java.lang.StringBuilder.toString(Unknown Source)<br /> at com.puppycrawl.tools.checkstyle.api.FileText.<init>(FileText.java:146)<br /> at com.puppycrawl.tools.checkstyle.Checker.process(Checker.java:259)<br /> at com.puppycrawl.tools.checkstyle.Main.main(Main.java:121)</p> <p> </p> <p>So my question is the following, how can I specified to checkStyle to only take in account java files and not all files contains in my root directory?</p> <p> </p> <p>Note that in my_config_checkstyle.xml I have specified the property name="fileExtensions" everywhere. but the tool seems to continue loading all files.</p> <p> </p> <p>I can't allocate more memory to CheckStyle.</p> <p> </p> <p>Thanks a lot for any idea.</p> <p> </p> <p>Florent</p> ------=_Part_7548_2075312061.1343384339597-- --===============1107970792615168119== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ --===============1107970792615168119== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Checkstyle-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/checkstyle-user --===============1107970792615168119==--