GayaBalan / ivybeans

Automatically exported from code.google.com/p/ivybeans
0 stars 0 forks source link

IAE setting settings file using relative path #69

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I set the ivy settings file by hand to "../../build-common/ivysettings.xml" and 
clicked OK.

Need to call FileUtil.normalizeFile() on the file created from the user-entered 
string to fix.

java.lang.IllegalArgumentException: Parameter file was not normalized. Was 
/Users/tim/work/servo/cloud2/build-util/todo.scan/../../build-common/ivysettings
.xml 
instead of /Users/tim/work/servo/cloud2/build-common/ivysettings.xml
    at org.openide.filesystems.FileUtil.toFileObject(FileUtil.java:991)
    at 
com.googlecode.ivybeans.module.IvyLibraryController.setSettingsFile(IvyLibraryCo
ntroller.java:16
5)
    at 
com.googlecode.ivybeans.module.IvyLibraryController.setSettings(IvyLibraryContro
ller.java:143)
    at 
com.googlecode.ivybeans.module.customizer.CompositeCategoryProviderImpl$StoreLis
tener.acti
onPerformed(CompositeCategoryProviderImpl.java:97)
    at 
org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener.storePerforme
d(Customize
rDialog.java:317)
    at 
org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener.access$400(Cu
stomizerDi
alog.java:221)
    at 
org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener$2$1.run(Custo
mizerDialo
g.java:279)
    at org.openide.util.Mutex.writeAccess(Mutex.java:394)
    at 
org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener$2.run(Customi
zerDialog.j
ava:273)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1415)
[catch] at 
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1954)

Original issue reported on code.google.com by niftin...@gmail.com on 6 May 2010 at 3:51