Hi Mark, I have seen similar problems to this on Windows 2000 Server. For us, the problem did not occur on Windows XP, which our development is done on, but it showed up on the build machine, which was Windows 2000 Server.
If this is the case it has nothing to do with Ant or style sheets or anything to do with java. It is an operating system problem. Sometimes, when this happens, it leaves files around that the OS cannot delete because the filename is too long. You have to use the 8.3 version of the filename. Regards Donald. > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 15 September 2004 1:01 PM > To: [EMAIL PROTECTED] > Subject: style task: issues with long filenames > > > > > > > Hello All, > > I'm having an issue with using the ant style task (when trying to use > checkstyle). > > I have ant 1.6.2 installed with xalan 2.6.0 installed in the $ANT_HOME/lib > directory. > > When i try to execute a transformation on a filename over a certain number > of characters, i get this error from ant: > > > C:\cc_views\n143028_build_modifications_view\ias-dev\ias-app>ant > checkstyle > Buildfile: build.xml > > -checkstyle: > [style] Processing > C:\cc_views\n143028_build_modifications_view\ias-dev\ias-app\build > \checkstyle\checkstyle_report.xml > to C:\cc_views\n143028_build_modifica > tions_view\ias-dev\ias-app\build\checkstyle\checkstyle_report.html > [style] Loading stylesheet > C:\cc_views\n143028_build_modifications_view\ias-dev\ias\ant\check > style-frames.xsl > [style] > C:/cc_views/n143028_build_modifications_view/ias-dev/ias/ant/check > style-frames.xsl:322:73: > Fatal Error! > > C:\cc_views\n143028_build_modifications_view\ias-dev\ias-app\build > \checkstyle\.\files\C_\cc_views\n143028_build_modifications_view\i > as-dev\ias-app\src\com\thenational\ias\pd\accountingentries\genera > tor\InterestRecoveryFromNetDebtAccountEntryGenerator.java.html > (Filename too long) Cause: java.io.FileNotFoundException: > > C:\cc_views\n143028_build_modifications_view\ias-dev\ias-app\build > \checkstyle\.\files\C_\cc_views\n143028_build_modifications_view\i > as-dev\ias-app\src\com\thenational\ias\pd\accountingentries\genera > tor\InterestRecoveryFromNetDebtAccountEntryGenerator.java.html > (Filename too long) > > [style] > C:/cc_views/n143028_build_modifications_view/ias-dev/ias/ant/check > style-frames.xsl:322:73: > Fatal Error! Fatal error during transformation Cause: Fat > al error during transformation > [style] Failed to process > C:\cc_views\n143028_build_modifications_view\ias-dev\ias-app\build > \checkstyle\checkstyle_report.xml > > BUILD FAILED > C:\cc_views\n143028_build_modifications_view\ias-dev\ias-app\build > .xml:182: > The following error occurred while executing this line: > C:\cc_views\n143028_build_modifications_view\ias-dev\ias\ant\build > -macros.xml:171: > Fatal error during transformation > > Total time: 32 seconds > > The offending line of the ant macro is: > > <style in="@{checkstyledestdir}/checkstyle_report.xml" > out="@{checkstyledestdir}/checkstyle_report.html" > style="@{checkstylestylesheet}"/> > > > The transformation seems to work ok when started from a smaller directory > (so C:\workspace\ias-app\build.xml as opposed to what is listed above). > > Is there something i am missing here? Any help would be appreciated. > > cheers, > > ::mark > > Mark Angrish > Programmer > J2EE Engineering Room > Extend Development Centre > National Australia Bank > 4/500 Bourke Street, Melbourne > Email: [EMAIL PROTECTED] > > This email is sent by or on behalf of the named sender identified > above. If > you do not wish to receive any email marketing material from this > person in > the future, please forward the contents of this email to > [EMAIL PROTECTED] with the word "unsubscribe" in the subject > box. If you do not forward the contents of this email with your > unsubscription then it may not be able to be implemented. If you wish to > unsubscribe from all central email marketing lists used by our business, > please forward the contents of this email to > [EMAIL PROTECTED] with the message "unsubscribe from all > central email marketing lists" in the subject box. If you do not forward > the contents of this email with your unsubscription then it may > not be able > to be implemented. > > > The information contained in this email communication may be confidential. > You should only disclose, re-transmit, copy, distribute, act in > reliance on > or commercialise the information if you are authorised to do so. > Any views > expressed in this email communication are those of the individual sender, > except where the sender specifically states them to be the views of a > member of the National Australia Bank Group of companies. Any advice > contained in this e-mail has been prepared without taking into > account your > objectives, financial situation or needs. Before acting on any advice in > this e-mail, National Australia Bank Limited recommends that you consider > whether it is appropriate for your circumstances. If this e-mail contains > reference to any financial products, the National recommends you consider > the Product Disclosure Statement (PDS) or other disclosure > document before > making any decisions regarding any products. The National Australia Bank > Group of companies does not represent, warrant or guarantee that the > integrity of this communication has been maintained nor that the > communication is free of errors, virus or interference. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]