Project: appceleratorstudio
Issue TISTUD-1726: Error cleaning titanium project when platform SDK has unusual version string
I have an app tied to a special SDK version for blackberry, where the folder name is "blackberry_compat_2.0.1.v20120407201726". When the project is cleaned, we throw an error trying to parse the version. {code} !ENTRY org.eclipse.core.resources 4 75 2012-06-01 10:47:31.436 !MESSAGE Errors occurred during the build. !SUBENTRY 1 com.appcelerator.titanium.core 4 75 2012-06-01 10:47:31.436 !MESSAGE Errors running builder 'Titanium Builder' on project 'blackberry_app'. !STACK 0 java.lang.NumberFormatException: For input string: "blackberry_compat_2" java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) java.lang.Integer.parseInt(Integer.java:449) java.lang.Integer.parseInt(Integer.java:499) org.osgi.framework.Version.(Version.java:127) org.osgi.framework.Version.parseVersion(Version.java:225) com.appcelerator.titanium.core.TitaniumProjectBuilder.clean(TitaniumProjectBuilder.java:72) org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:730) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199) org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239) org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295) org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351) org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374) org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:513) org.eclipse.core.internal.resources.Workspace.build(Workspace.java:422) com.aptana.editor.common.preferences.ValidationPreferencePage$ApplyChangesAndBuildJob.run(ValidationPreferencePage.java:130) org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code}
Story points: 8