The following issue has been updated:
Updater: Brett Porter (mailto:[EMAIL PROTECTED])
Date: Wed, 7 Apr 2004 9:47 PM
Changes:
assignee changed to Brett Porter
Fix Version changed to 1.0-rc3
---------------------------------------------------------------------
For a full history of the issue, see:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1220&page=history
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1220
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-1220
Summary: custom ant task's classpath not complete?
Type: Bug
Status: Open
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven
Fix Fors:
1.0-rc3
Versions:
1.0-rc2
Assignee: Brett Porter
Reporter: Milos Kleint
Created: Sun, 4 Apr 2004 5:18 AM
Updated: Wed, 7 Apr 2004 9:47 PM
Environment: maven rc2, jdk 1.4.2, mandrakelinux10
Description:
I'm writing a plugin for creating netbeans modules using maven.
One part of it doens't work for me. I'm using netbeans own ant tasks to generate the
files.
One of the tasks requires a javax.xml.transform.TransformerFactory for the file
generation.
The affected code in nbantext calls this method:
Transformer t = TransformerFactory.newInstance().newTransformer();
I was not able to put xalan of the classpath of the task. Or better to say, it maybe
is on the classpath, but it won't find the provider for the interface by searching the
jars' META-INF/services folder.
The only way I succeed was to put the xalan's factory impl on the maven startup into
the system property (maven --offline -Djavax.xml.transform.TransformerFactory=<impl
name> nbm)
what I tried:
I added the xalan jar as dependency.
I added it on the <classloader>root></classloader>
I tried something along these lines in the taks definition:
<ant:taskdef name="genlist" classname="org.netbeans.nbbuild.MakeListOfNBM" >
<ant:classpath>
<ant:pathelement location="${plugin.getDependencyPath('xalan:xalan')}"/>
<ant:pathelement
location="${plugin.getDependencyPath('netbeans:nbantext')}"/>
<ant:path refid="maven.dependency.classpath"/>
</ant:classpath>
</ant:taskdef>
nothing of this works. Any idea?
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]