What OS? Is this maybe an OS issue? Mark On 25 Feb 2014, at 16:07, kmansoor <kmans...@hotmail.com> wrote:
> I'm experiencing a most unusual issue: file.isDirectory() is returning a > false on 'maven' as in: > > \work\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\dcwebcv\META-INF\maven > > KieBuilderImpl.recurseToPomProperties: > > public static File recurseToPomProperties(File file) { > if( file.isDirectory() ) { > for ( java.io.File child : file.listFiles() ) { > if ( child.isDirectory() ) { > File returnedFile = recurseToPomProperties( child ); > if ( returnedFile != null ) { > return returnedFile; > } > } else if ( child.getName().endsWith( "pom.properties" ) ) { > return child; > } > } > } > return null; > } > > I stepped through the code and found file.isDirectory() returning false. I > have verified the directory 'maven' has sub-directories following the > $groupId/$artifactId convention. The $artifactId directory does contain > pom.properties and pom.xml. > > My environment: > Eclipse Kepler SR1 > Drools: 6.0.1 > Relevant pom.xml > > <dependency> > <groupId>org.kie</groupId> > <artifactId>kie-api</artifactId> > <version>${kie.version}</version> > </dependency> > <dependency> > <groupId>org.kie</groupId> > <artifactId>kie-internal</artifactId> > <version>${kie.version}</version> > </dependency> > <dependency> > <groupId>org.drools</groupId> > <artifactId>drools-core</artifactId> > <version>${drools.version}</version> > </dependency> > <dependency> > <groupId>org.drools</groupId> > <artifactId>drools-compiler</artifactId> > <version>${drools.version}</version> > </dependency> > <dependency> > <groupId>org.kie</groupId> > <artifactId>kie-spring</artifactId> > <version>${kie.version}</version> > <exclusions> > <exclusion> > <artifactId>el-api</artifactId> > <groupId>javax.el</groupId> > </exclusion> > </exclusions> > </dependency> > > This same exact setup on a colleague's machine works fine, when stepping > through the above code file.isDirectory() returned a true on 'maven' and > pom.properties was found (recursively). > > Any pointers will be highly appreciated. > > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Unable-to-find-pom-properties-tp4028307.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users