From: Scott W. <sco...@gm...> - 2009-12-10 23:44:50
|
Okay, after debugging a little bit, I can see the problem. It's happening in the following stack: at org.xmlvm.proc.out.build.PathFileFilter.accept(PathFileFilter.java:18) at org.xmlvm.proc.out.build.BuildFile.getFileNames(BuildFile.java:60) at org.xmlvm.proc.out.build.XCodeFile$XCodeProj.injectFiles(XCodeFile.java:123) at org.xmlvm.proc.out.build.XCodeFile$XCodeProj.access$100(XCodeFile.java:87) at org.xmlvm.proc.out.build.XCodeFile.composeBuildFiles(XCodeFile.java:74) at org.xmlvm.proc.out.IPhoneOutputProcess.process(IPhoneOutputProcess.java:118) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:104) at org.xmlvm.proc.NewMain.main(NewMain.java:50) The project source file paths look like: .\dist\demo\iphone\ihelloworld\fullscreen\iphone\src\app\org_xmlvm_demo_ihelloworld_fullscreen_HelloWorld.h but it's looking (via String.endsWith()) to see if the file is under the path "/src/app". So yes, it's a path delimiter issue. There are a couple of ways to fix this: 1) canonicalize the project files' paths to use front-slashes before comparing; 2) canonicalize the test locations for the filters (and really any constructed paths) to use the OS's native path delimiter. I can make these changes, but I wanted to get the folks who have written this code to weigh in because I don't want to make a change that's not in sync with how you guys would like to go. Or I'm happy deferring the change to you guys as well... Please let me know how you'd like to proceed. Thanks! Scott 2009/12/10 Scott Wells <sco...@gm...> > Okay, I've built XMLVM on the Mac and have compared the XCode project > output for the ihelloworld fullscreen demo. They're definitely different. > The Mac-produced version has all of the leaf source files in the project > file while the Window-produced version does not. I've attached the > project.pbxproj files to this email. I'm happy to debug into this a bit if > no one else knows a quick fix off the top of the head. Any pointers on > where these files are generated would be appreciated, but I'm sure I can > find them pretty quickly in the IDE, too. > > Regards, > Scott > > 2009/12/10 Scott Wells <sco...@gm...> > > Yeah, I'm going to build on my Mac and diff the created projects, then see >> if I can find in the XCode project generator where it's building paths. >> Unless I'm wrong, it should always be building paths that are valid on the >> Mac (and under XCode), not on the host operating system. >> >> 2009/12/10 Panayotis Katsaloulis <pan...@pa...> >> >> >>> On 11 Δεκ 2009, at 12:28 π.μ., Arno Puder wrote: >>> >>> > >>> > well, I'm using this feature all the time without any troubles. I've >>> > noticed from your earlier message today that you tried to compile XMLVM >>> > on a Windows box (looking at the path names). On which system do you >>> try >>> > to generate the Xcode project? On Windows as well? >>> > >>> > Arno >>> > >>> >>> Just an idea... problably this has to do with the \ character? >>> >>> ------------------------------------------------------------------------------ >>> Return on Information: >>> Google Enterprise Search pays you back >>> Get the facts. >>> http://p.sf.net/sfu/google-dev2dev >>> _______________________________________________ >>> xmlvm-users mailing list >>> xml...@li... >>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>> >> >> > |