Author: timotei
Date: Sun Jul 10 22:48:05 2011
New Revision: 50268
URL: http://svn.gna.org/viewcvs/wesnoth?rev=50268&view=rev
Log:
eclipse plugin: Use the parent's file path to match
the file in the directories list
Modified:
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/builder/DependencyListBuilder.java
Modified:
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/builder/DependencyListBuilder.java
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/builder/DependencyListBuilder.java?rev=50268&r1=50267&r2=50268&view=diff
==============================================================================
---
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/builder/DependencyListBuilder.java
(original)
+++
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/builder/DependencyListBuilder.java
Sun Jul 10 22:48:05 2011
@@ -108,7 +108,7 @@
public DependencyListNode addNode( IFile file )
{
DependencyListNode backupPrevious = previous_, newNode = null;
- String fileProjectPath = file.getProjectRelativePath( ).toString( );
+ String fileProjectPath = file.getParent( ).getProjectRelativePath(
).toString( );
// we add a file in an existing processed directory.
if ( directories_.contains( fileProjectPath ) ) {
@@ -131,7 +131,7 @@
// we found the place?
if ( ResourceUtils.wmlFileNameCompare(
- fileName, tmpNode.getFile( ).getName( ) ) > 0 ) {
+ tmpNode.getFile( ).getName( ), fileName ) > 0 ) {
previous_ = tmpNode.getPrevious( );
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits