all done, thanks for every thing Ben -Dan
On Thu, Jan 15, 2009 at 7:47 AM, Benjamin Bentmann <[email protected]> wrote: > Dan Tran wrote: > >>> The "Plugin Documentation" states a bad JDK requirement [1]. [...] >>> >> >> What should I do with this? > > Adding the following snippet to the POM should do for now: > > <reporting> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-plugin-plugin</artifactId> > <version>2.4.2</version> > <configuration> > <requirements> > <jdk>${project.build.java.target}</jdk> > </requirements> > </configuration> > </plugin> > </plugins> > </reporting> > >>> The MoveMojo uses java.lang.String for its path parameters "from" and >>> "to". >>> [...] >>> >> This is not possible since I can't use java.io.File, i can only use >> the one from TrueZip >> >> do you have a work around? > > Then the plugin just needs to manually resolve relative paths: > > if ( !new File( path ).isAbsolute() ) > path = new File( basedir, path ).getAbsolutePath(); > > This could be a pre-processing step in the mojos before they pass the paths > around and into code parts that don't know about a MavenProject and its base > directory. > > > Benjamin > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
