You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Christoph Läubrich <ma...@laeubi-soft.de> on 2022/11/23 18:37:18 UTC
Maven and the Path API
Currently maven is bound to the Java File API, e.g.
org.apache.maven.project.MavenProject.getBasedir()
org.apache.maven.project.MavenProject.getFile()
while others uses Strings, e.g.
org.apache.maven.project.MavenProject.addCompileSourceRoot(String)
I wonder if it would be good to move Maven towards Java Path API using
Path at all these places (and probably related projects as well for
example [1]).
[1] https://github.com/codehaus-plexus/plexus-utils/issues/224
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Maven and the Path API
Posted by Gary Gregory <ga...@gmail.com>.
Nice!
Gary
On Wed, Nov 23, 2022, 14:31 Guillaume Nodet <gn...@apache.org> wrote:
> That's done in the v4 api.
>
> Le mer. 23 nov. 2022 à 19:37, Christoph Läubrich <ma...@laeubi-soft.de> a
> écrit :
>
> > Currently maven is bound to the Java File API, e.g.
> >
> > org.apache.maven.project.MavenProject.getBasedir()
> > org.apache.maven.project.MavenProject.getFile()
> >
> > while others uses Strings, e.g.
> >
> > org.apache.maven.project.MavenProject.addCompileSourceRoot(String)
> >
> > I wonder if it would be good to move Maven towards Java Path API using
> > Path at all these places (and probably related projects as well for
> > example [1]).
> >
> > [1] https://github.com/codehaus-plexus/plexus-utils/issues/224
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> >
> >
>
> --
> ------------------------
> Guillaume Nodet
>
Re: Maven and the Path API
Posted by Guillaume Nodet <gn...@apache.org>.
That's done in the v4 api.
Le mer. 23 nov. 2022 à 19:37, Christoph Läubrich <ma...@laeubi-soft.de> a
écrit :
> Currently maven is bound to the Java File API, e.g.
>
> org.apache.maven.project.MavenProject.getBasedir()
> org.apache.maven.project.MavenProject.getFile()
>
> while others uses Strings, e.g.
>
> org.apache.maven.project.MavenProject.addCompileSourceRoot(String)
>
> I wonder if it would be good to move Maven towards Java Path API using
> Path at all these places (and probably related projects as well for
> example [1]).
>
> [1] https://github.com/codehaus-plexus/plexus-utils/issues/224
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
--
------------------------
Guillaume Nodet