Bugs item #878352, was opened at 2004-01-16 16:56 Message generated for change (Comment added) made by drieseng You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=878352&group_id=31650
Category: Tasks >Group: 0.85 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Eberhard Beilharz (eberhard) Assigned to: Nobody/Anonymous (nobody) Summary: Style task can't find include file Initial Comment: The style task has a very strange problem where it can't find included xslt file. To reproduce: unzip the attached file in a directory, e.g. c:\tmp\bug If you open a cmd window, cd to c:\tmp\bug and run NAnt it works. Now delete output.txt, change to c:\tmp and run NAnt - f:bug\stylebug.build - it fails saying that it can't find file "c:\tmp\include.xslt". However, if output.txt exists in c:\tmp\bug it works even in this case! This is basically the same problem as [793403], but I couldn't find a way to attach a file to a comment, so I created this new bug report. ---------------------------------------------------------------------- >Comment By: Gert Driesen (drieseng) Date: 2004-02-05 20:03 Message: Logged In: YES user_id=707851 This is now fixed in cvs. Thanks for the report ! ---------------------------------------------------------------------- Comment By: Eberhard Beilharz (eberhard) Date: 2004-01-16 17:22 Message: Logged In: YES user_id=695643 One possible solution would be to call Directory.SetCurrentDirectory(Path.GetDirectoryName (xsltPath)); before calling Transform or loading the xslt file, and call SetCurrentDirectory with the old value again in the finally block. This would be similar to what the NAnt task does. ---------------------------------------------------------------------- Comment By: Eberhard Beilharz (eberhard) Date: 2004-01-16 17:04 Message: Logged In: YES user_id=695643 Calling nant from c:\tmp does never work, even if output.txt exists. The only reason that it didn't fail was that output.txt was younger then the other files, so the style task didn't try to transform. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=878352&group_id=31650 ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers