[
http://jira.codehaus.org/browse/MOJO-1050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_124355
]
Alexandre Navarro commented on MOJO-1050:
-----------------------------------------
The important line is
if (tmpFile.exists() && tmpFile.isFile())
The code above with java5 feature is not mandatory. Keep the previous code (in
java 4 syntax).
> Problem in dependcy analysis in the native plugin in a very specific case
> -------------------------------------------------------------------------
>
> Key: MOJO-1050
> URL: http://jira.codehaus.org/browse/MOJO-1050
> Project: Mojo
> Issue Type: Bug
> Components: native
> Reporter: Alexandre Navarro
>
> In boost library, there is in the file
> next_prior.hpp
> with
> #include <iterator>
> This include represents the iterator of the stl included in the compiler.
> Nevertheless, there is also a iterator directory in the next_prior.hpp
> directory.
> The parser thinks that the iterator is a file and try to parse it (and throw
> a Exception with (Access is denied)).
> This bug can be fixed in adding a check if is a reallly file in the method
> resolveSingleIncludeNameFromPaths of org.codehaus.mojo.natives.Depency
> private File resolveSingleIncludeNameFromPaths(String includeName, List<File>
> includePath)
> throws IOException {
> File includeFile = null;
> for (File includeFolder : includePath) {
> File tmpFile = new File(includeFolder, includeName);
> if (tmpFile.exists() && tmpFile.isFile()) { includeFile = tmpFile; break; }
> }
> return includeFile;
> }
--
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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email