curcuru 01/08/14 10:20:42
Modified: test/java/src/org/apache/qetest/xsl XSLTestAntTask.java
XSLTestAntTask.class
Log:
Properly use project.getBaseDir() to writePassThruProps
Revision Changes Path
1.4 +8 -5
xml-xalan/test/java/src/org/apache/qetest/xsl/XSLTestAntTask.java
Index: XSLTestAntTask.java
===================================================================
RCS file:
/home/cvs/xml-xalan/test/java/src/org/apache/qetest/xsl/XSLTestAntTask.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- XSLTestAntTask.java 2001/08/08 13:28:06 1.3
+++ XSLTestAntTask.java 2001/08/14 17:20:42 1.4
@@ -113,7 +113,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Shane Curcuru</a>
* @author Stefano Mazzocchi <a href="mailto:[EMAIL PROTECTED]">[EMAIL
PROTECTED]</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Stefan Bodewig</a>
- * @version $Id: XSLTestAntTask.java,v 1.3 2001/08/08 13:28:06 curcuru Exp $
+ * @version $Id: XSLTestAntTask.java,v 1.4 2001/08/14 17:20:42 curcuru Exp $
*/
public class XSLTestAntTask extends Task
{
@@ -373,11 +373,14 @@
passThru.put(key.substring(altPrefix.length()),
antProps.get(key));
}
}
+ // Make sure to write to the basedir of the project!
+ File baseDir = this.getProject().getBaseDir();
+ String propFileName = baseDir.getPath() + File.separator +
passThruProps;
+ log("writePassThruProps attempting to write to " + propFileName,
Project.MSG_VERBOSE);
try
{
- log("writePassThruProps attempting to write to " +
passThruProps, Project.MSG_VERBOSE);
// If we can write the props out to disk...
- passThru.save(new FileOutputStream(passThruProps),
+ passThru.save(new FileOutputStream(propFileName),
"XSLTestAntTask.writePassThruProps() generated for use
by test " + testClass);
// ... then also force -load of this file into test's command
line
@@ -385,7 +388,7 @@
}
catch (IOException ioe)
{
- throw new BuildException("writePassThruProps could not write to
" + passThruProps + ", threw: "
+ throw new BuildException("writePassThruProps could not write to
" + propFileName + ", threw: "
+ ioe.toString(), location);
}
}
@@ -409,7 +412,7 @@
{
// Log out our version info: useful for debugging, since
// the wrong version of this class can easily get loaded
- log("XSLTestAntTask: $Id: XSLTestAntTask.java,v 1.3 2001/08/08
13:28:06 curcuru Exp $", Project.MSG_VERBOSE);
+ log("XSLTestAntTask: $Id: XSLTestAntTask.java,v 1.4 2001/08/14
17:20:42 curcuru Exp $", Project.MSG_VERBOSE);
// Call worker method to create and write prop file
// This passes thru both default 'qetest.' properties as
1.4 +99 -97
xml-xalan/test/java/src/org/apache/qetest/xsl/XSLTestAntTask.class
<<Binary file>>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]