aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/games/gluegen/pcpp/PCPP.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/games/gluegen/pcpp/PCPP.java')
-rw-r--r--src/net/java/games/gluegen/pcpp/PCPP.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/net/java/games/gluegen/pcpp/PCPP.java b/src/net/java/games/gluegen/pcpp/PCPP.java
index 0990bb155..51fa8f9bf 100644
--- a/src/net/java/games/gluegen/pcpp/PCPP.java
+++ b/src/net/java/games/gluegen/pcpp/PCPP.java
@@ -125,6 +125,19 @@ public class PCPP {
}
}
+ public String findFile(String filename) {
+ String sep = File.separator;
+ for (Iterator iter = includePaths.iterator(); iter.hasNext(); ) {
+ String inclPath = (String) iter.next();
+ String fullPath = inclPath + sep + filename;
+ File file = new File(fullPath);
+ if (file.exists()) {
+ return fullPath;
+ }
+ }
+ return null;
+ }
+
//----------------------------------------------------------------------
// Internals only below this point
//
@@ -748,19 +761,6 @@ public class PCPP {
}
}
- private String findFile(String filename) {
- String sep = System.getProperty("file.separator");
- for (Iterator iter = includePaths.iterator(); iter.hasNext(); ) {
- String inclPath = (String) iter.next();
- String fullPath = inclPath + sep + filename;
- File file = new File(fullPath);
- if (file.exists()) {
- return fullPath;
- }
- }
- return null;
- }
-
////////////
// Output //
////////////