diff options
author | Tran Le | 2013-07-14 21:03:53 +0000 |
---|---|---|
committer | Tran Le | 2013-07-14 21:03:53 +0000 |
commit | ef4b94a9bf3b1d77ac0f82f614a3724ffab012a9 (patch) | |
tree | 6efb57fbed53d59c01e004c8365dac0223c908b8 | |
parent | d29ab55eeab759b4078a0bc942b22e6dfc107602 (diff) | |
download | webtools.dali-ef4b94a9bf3b1d77ac0f82f614a3724ffab012a9.tar.gz webtools.dali-ef4b94a9bf3b1d77ac0f82f614a3724ffab012a9.tar.xz webtools.dali-ef4b94a9bf3b1d77ac0f82f614a3724ffab012a9.zip |
388631 - Generate entities from tables: FileNotFoundException if
directory name in Eclipse's path begins with '!'
-rw-r--r-- | jpa/plugins/org.eclipse.jpt.jpa.gen/src/org/eclipse/jpt/jpa/gen/internal/util/UrlUtil.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.gen/src/org/eclipse/jpt/jpa/gen/internal/util/UrlUtil.java b/jpa/plugins/org.eclipse.jpt.jpa.gen/src/org/eclipse/jpt/jpa/gen/internal/util/UrlUtil.java index db4f13b5ed..96ed76d9e4 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.gen/src/org/eclipse/jpt/jpa/gen/internal/util/UrlUtil.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.gen/src/org/eclipse/jpt/jpa/gen/internal/util/UrlUtil.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2009 Oracle. All rights reserved. + * Copyright (c) 2007, 2013 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -92,7 +92,8 @@ public class UrlUtil return null; } String file = url.getFile(); //file:/C:/testapps/example/WEB-INF/lib/struts.jar!/META-INF/tlds/struts-bean.tld - int index = file.indexOf('!'); + String jarFileEnding = ".jar!"; //$NON-NLS-1$ + int index = file.indexOf(jarFileEnding) + jarFileEnding.length() - 1; if (index < 0) { return null; } |