You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/04/04 11:20:06 UTC

[jira] Created: (MAVEN-1220) custom ant task's classpath not complete?

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
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: Unassigned
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
   Versions:
             1.0-rc2

   Assignee: 
   Reporter: Milos Kleint

    Created: Sun, 4 Apr 2004 5:18 AM
    Updated: Sun, 4 Apr 2004 5:18 AM
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org