You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Jerome Lacoste <je...@coffeebreaks.org> on 2004/05/18 17:42:19 UTC

RE: cvs commit: maven-plugins/ant/src/plugin-resources/templates build.jelly

On Tue, 2004-05-18 at 05:09, Arnaud Heritier wrote:
> Yes, sorry, the log isn't correct.
> The problem was that you couldn't call "ant javadoc" direclty because we
> used this classpath 
> 
>       <classpath>
>         <fileset dir="$${libdir}">
>           <include name="*.jar"/>
>         </fileset>
>         <pathelement location="$${defaulttargetdir}/$${final.name}.jar"/>
>       </classpath>
> 
> $${defaulttargetdir}/$${final.name}.jar is created in the jar target.

so is it a classpath problem or a goal dependency one?

It seems like this jar is not needed tfor resolution. The sourcepath is
defined, and only the libraries are needed in the path.

You should probably remove the ...{final.name}.jar  path element and the
introduced goal dependency.


I checked in one of my projects and I only use the build.classpath for
the javadoc task.

   <path id="build.classpath">
      <fileset dir="${lib.dir}" >
        <include name="**/*.jar"/>
      </fileset>
    </path>

    <path id="run.classpath">
      <pathelement path="${classes.dir}"/>
      <path refid="build.classpath" />
    </path>

[..]
    <javadoc packagenames="${packages}"
      destdir="${javadocs.dir}"
      author="true"
      version="true"
      use="true"
      windowtitle="${project.name} ${project.version}"
      doctitle="${project.name} ${project.version}&lt;br&gt; API"
      bottom="${copyright}"
      source="1.4">
      <classpath refid="build.classpath" />
[...]


Maybe could we use classpath references in that jelly file? At least for
the build.classpath one. It is used 4 times in the file  (1.0.rc2).


Jerome


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


RE: cvs commit: maven-plugins/ant/src/plugin-resources/templatesbuild.jelly

Posted by Arnaud Heritier <ah...@apache.org>.

> -----Message d'origine-----
> De : Jerome Lacoste [mailto:jerome@coffeebreaks.org]
> Envoyé : mardi 18 mai 2004 17:42
> À : Maven Developers List
> Objet : RE: cvs commit: maven-plugins/ant/src/plugin-
> resources/templatesbuild.jelly
> 
> On Tue, 2004-05-18 at 05:09, Arnaud Heritier wrote:
> > Yes, sorry, the log isn't correct.
> > The problem was that you couldn't call "ant javadoc" direclty because we
> > used this classpath
> >
> >       <classpath>
> >         <fileset dir="$${libdir}">
> >           <include name="*.jar"/>
> >         </fileset>
> >         <pathelement
> location="$${defaulttargetdir}/$${final.name}.jar"/>
> >       </classpath>
> >
> > $${defaulttargetdir}/$${final.name}.jar is created in the jar target.
> 
> so is it a classpath problem or a goal dependency one?
> 
> It seems like this jar is not needed tfor resolution. The sourcepath is
> defined, and only the libraries are needed in the path.

Yes.

> 
> You should probably remove the ...{final.name}.jar  path element and the
> introduced goal dependency.

+1 I will

> 
> 
> I checked in one of my projects and I only use the build.classpath for
> the javadoc task.
> 
>    <path id="build.classpath">
>       <fileset dir="${lib.dir}" >
>         <include name="**/*.jar"/>
>       </fileset>
>     </path>
> 
>     <path id="run.classpath">
>       <pathelement path="${classes.dir}"/>
>       <path refid="build.classpath" />
>     </path>
> 
> [..]
>     <javadoc packagenames="${packages}"
>       destdir="${javadocs.dir}"
>       author="true"
>       version="true"
>       use="true"
>       windowtitle="${project.name} ${project.version}"
>       doctitle="${project.name} ${project.version}&lt;br&gt; API"
>       bottom="${copyright}"
>       source="1.4">
>       <classpath refid="build.classpath" />
> [...]
> 
> 
> Maybe could we use classpath references in that jelly file? At least for
> the build.classpath one. It is used 4 times in the file  (1.0.rc2).

+1. I'll do it tonight

> 
> 
> Jerome

Arnaud

> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org