[ http://jira.codehaus.org/browse/JIBX-429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Don Corley reassigned JIBX-429: ------------------------------- Assignee: Don Corley > Directory issue when configuring the plugin using ${project.basedir}... in a > windows environment > ------------------------------------------------------------------------------------------------ > > Key: JIBX-429 > URL: http://jira.codehaus.org/browse/JIBX-429 > Project: JiBX > Issue Type: Bug > Components: maven plugin > Affects Versions: JiBX 1.2.3 > Environment: Windows 7, Java JDK 1.6.0_24, Maven 3.0.3 > Reporter: David Wolff > Assignee: Don Corley > Priority: Minor > > I had a booger of a time getting the plugin to work because I was specifying > an absolute path (by putting ${project.basedir} on the front of my relative > path) in the <bindingDirectory/> element. The code in > AbstractJibxMojo.getFullPath(String dir)... looks to see if the path > specified is absolute by checking for a file separator at the beginning. > This works great for linux style file systems but bombs for windows > <drive>:<path> type entries. > Example: > --------------- > My config was as follows: > <bindingDirectory>${project.basedir}/src/main/resources/schema</bindingDirectory> > The directory that the JiBX maven plugin ended up searching for my binding > files was > "D:/dev/java/myprojectD:/dev/java/myproject/src/main/resources/schema", which > is obviously an invalid directory, because the mojo was presuming the path > was relative and prepended another project base directory to the front. This > naturally resulted in zero binding files found and no JiBX bytecode > enhancement. > --------------- > The mojo works great when I specify a relative path (e.g. > <bindingDirectory>src/main/resources/schema</bindingDirectory>) however, I > think it should work when I have {$project.basedir} on the front as well. I > wasted a tremendous amount of time trying to determine what the problem was > when my configuration was more or less correct. > Many thanks in advance for a fix for this :) > Dave Wolff -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ jibx-devs mailing list jibx-devs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-devs