[jira] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

2008-09-19 Thread Maarten Coene (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632547#action_12632547
 ] 

Maarten Coene commented on IVY-907:
---

Don't we already do a variable subsitution when we set a variable?
The setVariable method on the variablecontainer already calls the substitue 
method...

> Environment properties in ivy settings are no longer resolved
> -
>
> Key: IVY-907
> URL: https://issues.apache.org/jira/browse/IVY-907
> Project: Ivy
>  Issue Type: Bug
>Affects Versions: 2.0-RC1
>Reporter: Erik-Berndt Scheper
>Assignee: Maarten Coene
> Fix For: 2.0.x
>
> Attachments: IVY-907.zip, ivysettings.zip
>
>
> I have an ivy.settings.xml file published on an intranet http server, which 
> includes a property file from the same http server. (see attached files). 
> This property file includes the property:
> {code}ivy.cache.dir = ${env.IVY_CACHE_DIR}{code}
> This environment based property is no longer resolved when I use the proposed 
> ivy-2.0.0-rc1.jar. This leads to the following error during resolve:
> {noformat}
> ivy.check:
> ivy.init:
> [mkdir] Created dir: 
> D:\ws\eclipse-3.4\AAD\AAD-domain-model\target\reports\ivy
> ivy.resolve:
> [ivy:resolve] :: Ivy 2.0.0-rc1 - 20080916082609 :: http://ant.apache.org/ivy/ 
> ::
> :: loading settings :: url = 
> http://172.30.247.68/ivy-settings/ivy.settings.xml
> BUILD FAILED
> D:\ws\eclipse-3.4\AAD\build\build-ivy\build.ivy.xml:75: 
> java.lang.IllegalArgumentException: ivy.cache.dir must be absolute: 
> ${env.IVY_CACHE_DIR}
> Total time: 2 seconds
> {noformat}
> The same ivy settings files worked perfectly well with a previous ivy which I 
> built from trunk: org.apache.ivy_2.0.0.rc1_20080813101604.jar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

2008-09-19 Thread Erik-Berndt Scheper (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632566#action_12632566
 ] 

Erik-Berndt Scheper commented on IVY-907:
-

Unfortunately I'm out of the office today, so I don't have time to check this 
right now. I will certainly check it on Monday though, and provide feedback on 
Maarten's fix and the suggested workarounds. I do agree with Xavier that this 
is no blocker for rc1, although I would like to see it fixed for 2.0 final 
(please). 

BTW: Thanks for the quick turn-around.

> Environment properties in ivy settings are no longer resolved
> -
>
> Key: IVY-907
> URL: https://issues.apache.org/jira/browse/IVY-907
> Project: Ivy
>  Issue Type: Bug
>Affects Versions: 2.0-RC1
>Reporter: Erik-Berndt Scheper
>Assignee: Maarten Coene
> Fix For: 2.0.x
>
> Attachments: IVY-907.zip, ivysettings.zip
>
>
> I have an ivy.settings.xml file published on an intranet http server, which 
> includes a property file from the same http server. (see attached files). 
> This property file includes the property:
> {code}ivy.cache.dir = ${env.IVY_CACHE_DIR}{code}
> This environment based property is no longer resolved when I use the proposed 
> ivy-2.0.0-rc1.jar. This leads to the following error during resolve:
> {noformat}
> ivy.check:
> ivy.init:
> [mkdir] Created dir: 
> D:\ws\eclipse-3.4\AAD\AAD-domain-model\target\reports\ivy
> ivy.resolve:
> [ivy:resolve] :: Ivy 2.0.0-rc1 - 20080916082609 :: http://ant.apache.org/ivy/ 
> ::
> :: loading settings :: url = 
> http://172.30.247.68/ivy-settings/ivy.settings.xml
> BUILD FAILED
> D:\ws\eclipse-3.4\AAD\build\build-ivy\build.ivy.xml:75: 
> java.lang.IllegalArgumentException: ivy.cache.dir must be absolute: 
> ${env.IVY_CACHE_DIR}
> Total time: 2 seconds
> {noformat}
> The same ivy settings files worked perfectly well with a previous ivy which I 
> built from trunk: org.apache.ivy_2.0.0.rc1_20080813101604.jar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

2008-09-19 Thread Xavier Hanin (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632571#action_12632571
 ] 

Xavier Hanin commented on IVY-907:
--

bq. Don't we already do a variable subsitution when we set a variable?
You're absolutely right! So the problem was *only* when used from Ant, and your 
fix should be enough. Good job, sorry for the noise.

> Environment properties in ivy settings are no longer resolved
> -
>
> Key: IVY-907
> URL: https://issues.apache.org/jira/browse/IVY-907
> Project: Ivy
>  Issue Type: Bug
>Affects Versions: 2.0-RC1
>Reporter: Erik-Berndt Scheper
>Assignee: Maarten Coene
> Fix For: 2.0.x
>
> Attachments: IVY-907.zip, ivysettings.zip
>
>
> I have an ivy.settings.xml file published on an intranet http server, which 
> includes a property file from the same http server. (see attached files). 
> This property file includes the property:
> {code}ivy.cache.dir = ${env.IVY_CACHE_DIR}{code}
> This environment based property is no longer resolved when I use the proposed 
> ivy-2.0.0-rc1.jar. This leads to the following error during resolve:
> {noformat}
> ivy.check:
> ivy.init:
> [mkdir] Created dir: 
> D:\ws\eclipse-3.4\AAD\AAD-domain-model\target\reports\ivy
> ivy.resolve:
> [ivy:resolve] :: Ivy 2.0.0-rc1 - 20080916082609 :: http://ant.apache.org/ivy/ 
> ::
> :: loading settings :: url = 
> http://172.30.247.68/ivy-settings/ivy.settings.xml
> BUILD FAILED
> D:\ws\eclipse-3.4\AAD\build\build-ivy\build.ivy.xml:75: 
> java.lang.IllegalArgumentException: ivy.cache.dir must be absolute: 
> ${env.IVY_CACHE_DIR}
> Total time: 2 seconds
> {noformat}
> The same ivy settings files worked perfectly well with a previous ivy which I 
> built from trunk: org.apache.ivy_2.0.0.rc1_20080813101604.jar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (IVY-907) Environment properties in ivy settings are no longer resolved

2008-09-19 Thread Xavier Hanin (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632573#action_12632573
 ] 

Xavier Hanin commented on IVY-907:
--

Erik: if this doesn't go in rc1, it will go in 2.0 final only if another 
blocking issue is found in rc1. Otherwise we will promote rc1 as 2.0 final. Bug 
hunting is open!
That being said, it doesn't preclude releasing a 2.0.1 pretty quickly after 
2.0.0, with this fix and others. But if we delay 2.0.0 with non blocking issues 
it may last for too long.

> Environment properties in ivy settings are no longer resolved
> -
>
> Key: IVY-907
> URL: https://issues.apache.org/jira/browse/IVY-907
> Project: Ivy
>  Issue Type: Bug
>Affects Versions: 2.0-RC1
>Reporter: Erik-Berndt Scheper
>Assignee: Maarten Coene
> Fix For: 2.0.x
>
> Attachments: IVY-907.zip, ivysettings.zip
>
>
> I have an ivy.settings.xml file published on an intranet http server, which 
> includes a property file from the same http server. (see attached files). 
> This property file includes the property:
> {code}ivy.cache.dir = ${env.IVY_CACHE_DIR}{code}
> This environment based property is no longer resolved when I use the proposed 
> ivy-2.0.0-rc1.jar. This leads to the following error during resolve:
> {noformat}
> ivy.check:
> ivy.init:
> [mkdir] Created dir: 
> D:\ws\eclipse-3.4\AAD\AAD-domain-model\target\reports\ivy
> ivy.resolve:
> [ivy:resolve] :: Ivy 2.0.0-rc1 - 20080916082609 :: http://ant.apache.org/ivy/ 
> ::
> :: loading settings :: url = 
> http://172.30.247.68/ivy-settings/ivy.settings.xml
> BUILD FAILED
> D:\ws\eclipse-3.4\AAD\build\build-ivy\build.ivy.xml:75: 
> java.lang.IllegalArgumentException: ivy.cache.dir must be absolute: 
> ${env.IVY_CACHE_DIR}
> Total time: 2 seconds
> {noformat}
> The same ivy settings files worked perfectly well with a previous ivy which I 
> built from trunk: org.apache.ivy_2.0.0.rc1_20080813101604.jar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (IVY-909) Error messages on use of relative paths can be cyrptic

2008-09-19 Thread Andy Seaborne (JIRA)

 [ 
https://issues.apache.org/jira/browse/IVY-909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne updated IVY-909:
--


That error message is much clearer.  

> Error messages on use of relative paths can be cyrptic
> --
>
> Key: IVY-909
> URL: https://issues.apache.org/jira/browse/IVY-909
> Project: Ivy
>  Issue Type: Improvement
>Affects Versions: 2.0-RC1
>Reporter: Andy Seaborne
>Priority: Minor
>
> Use of a relatrive path (file system resolver, keyfile for sftp) results in a 
> message like:
> BUILD FAILED
> c:\home\afs\Projects\TDB\build-lib.xml:357: impossible to configure 
> ivy:settings with given file: c:\home\afs\Projects\TDB\ivysettings.xml : 
> java.text.ParseException: failed to load settings from 
> file:/c:/home/afs/Projects/TDB/ivysettings.xml: impossible to convert 
> /home/afs/.ssh/ivy-pub-jena-key to class java.io.File for setting keyFile on 
> class org.apache.ivy.plugins.resolver.SFTPResolver
> A more direct statement that "keyFile=" is realtive would be helpful 
> (in the example, this is MS Windows - an absolute file name must have a drive 
> letter).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (IVY-908) UNIX-style filenames for paths to work on MS-Windows

2008-09-19 Thread Andy Seaborne (JIRA)

 [ 
https://issues.apache.org/jira/browse/IVY-908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne updated IVY-908:
--


Does this include checking the documentation?  The example of 
"/path/to/repositiory" is from the documentation (various places) and it ivy 
and any both say that using / or \ on windows does not matter.  So a MS Windows 
user (not just cygwin users) may be lead to think that "/path/to/something" is 
going to be OK.  Time will tell!



> UNIX-style filenames for paths to work on MS-Windows
> 
>
> Key: IVY-908
> URL: https://issues.apache.org/jira/browse/IVY-908
> Project: Ivy
>  Issue Type: Improvement
>Affects Versions: 2.0-RC1
> Environment: cywgin on MS Wondows.
>Reporter: Andy Seaborne
>Priority: Minor
>
> A file name /path/to/repository is not absolute on MS-Windows.  A drive 
> letter is needed.
> This is particularly confusing if using cygwin but is true when using Windows 
> without cygwin ("/" is an acceptable path separator).
> Leads to less portability between Linux and Windows.
> In 2.0-RC-1, more paths must be absolute (e.g filesystem resolver artifact 
> pattern, keyfile to sftp resolver).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



svn commit: r696975 - /ant/core/trunk/src/etc/performance/dirscanner.xml

2008-09-19 Thread bodewig
Author: bodewig
Date: Fri Sep 19 01:23:24 2008
New Revision: 696975

URL: http://svn.apache.org/viewvc?rev=696975&view=rev
Log:
optional bigger testbed with an order of magnitude more dirs and files.

Modified:
ant/core/trunk/src/etc/performance/dirscanner.xml

Modified: ant/core/trunk/src/etc/performance/dirscanner.xml
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/etc/performance/dirscanner.xml?rev=696975&r1=696974&r2=696975&view=diff
==
--- ant/core/trunk/src/etc/performance/dirscanner.xml (original)
+++ ant/core/trunk/src/etc/performance/dirscanner.xml Fri Sep 19 01:23:24 2008
@@ -22,10 +22,15 @@
 changes between Ant releases.
 
 Before you run any tests, you need to set up the environment by
-running the setup target.  Note that this will create a directory
-tree holding 1 directories and about 22000 files.
+running the setup or big-setup target.  Note that this will create
+a directory tree holding 1 (setup) or 10 (big-setup)
+directories and about 22000 (setup) or 222000 (big-setup) files.
 
-The setup target requires Ant 1.7.0 or later.
+The setup/big-setup targets require Ant 1.7.0 or later.  It may be
+a good idea to use the -logfile option.
+
+Consider taking a nap if you run Ant 1.6.x or 1.7.0 against a
+"big" setup.
 
 The tests use the pathconvert task whose performance should be
 dominated by directory scanner, they would use ressourcecount if
@@ -43,7 +48,7 @@
 
   This is ${ant.version}
 
-  
+  
 
 
 
  

+  
+
+  

   
 
+  
+   
+  
+
   
 
@@ -248,5 +281,5 @@
   
 
   
+  depends="matchall, roots, recursive-excludes, name-matches, 
many-patterns, many-roots"/>
 




svn commit: r697003 - in /ant/antlibs/antunit/trunk: changes.xml version.properties

2008-09-19 Thread bodewig
Author: bodewig
Date: Fri Sep 19 02:18:30 2008
New Revision: 697003

URL: http://svn.apache.org/viewvc?rev=697003&view=rev
Log:
prepare for release

Modified:
ant/antlibs/antunit/trunk/changes.xml
ant/antlibs/antunit/trunk/version.properties

Modified: ant/antlibs/antunit/trunk/changes.xml
URL: 
http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/changes.xml?rev=697003&r1=697002&r2=697003&view=diff
==
--- ant/antlibs/antunit/trunk/changes.xml (original)
+++ ant/antlibs/antunit/trunk/changes.xml Fri Sep 19 02:18:30 2008
@@ -37,7 +37,7 @@
 Apache AntUnit
   
 
-  
+  
 
   assertFileExists example wrong, should use @file instead of @name
 

Modified: ant/antlibs/antunit/trunk/version.properties
URL: 
http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/version.properties?rev=697003&r1=697002&r2=697003&view=diff
==
--- ant/antlibs/antunit/trunk/version.properties (original)
+++ ant/antlibs/antunit/trunk/version.properties Fri Sep 19 02:18:30 2008
@@ -12,4 +12,4 @@
 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 #  See the License for the specific language governing permissions and
 #  limitations under the License.
-artifact.version=1.1beta2
+artifact.version=1.1




svn commit: r697004 - in /ant/antlibs/antunit/tags/1.1: ./ changes.xml version.properties

2008-09-19 Thread bodewig
Author: bodewig
Date: Fri Sep 19 02:21:09 2008
New Revision: 697004

URL: http://svn.apache.org/viewvc?rev=697004&view=rev
Log:
tag 1.1

Added:
ant/antlibs/antunit/tags/1.1/
  - copied from r697002, ant/antlibs/antunit/trunk/
ant/antlibs/antunit/tags/1.1/changes.xml
  - copied unchanged from r697003, ant/antlibs/antunit/trunk/changes.xml
ant/antlibs/antunit/tags/1.1/version.properties
  - copied unchanged from r697003, 
ant/antlibs/antunit/trunk/version.properties



svn commit: r697005 - in /ant/antlibs/antunit/trunk: ./ version.properties

2008-09-19 Thread bodewig
Author: bodewig
Date: Fri Sep 19 02:23:06 2008
New Revision: 697005

URL: http://svn.apache.org/viewvc?rev=697005&view=rev
Log:
open for new development

Modified:
ant/antlibs/antunit/trunk/   (props changed)
ant/antlibs/antunit/trunk/version.properties

Propchange: ant/antlibs/antunit/trunk/
--
--- svn:externals (original)
+++ svn:externals Fri Sep 19 02:23:06 2008
@@ -1 +1 @@
-common  
http://svn.apache.org/repos/asf/ant/antlibs/common/tags/antunit_11
+common  http://svn.apache.org/repos/asf/ant/antlibs/common/trunk

Modified: ant/antlibs/antunit/trunk/version.properties
URL: 
http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/version.properties?rev=697005&r1=697004&r2=697005&view=diff
==
--- ant/antlibs/antunit/trunk/version.properties (original)
+++ ant/antlibs/antunit/trunk/version.properties Fri Sep 19 02:23:06 2008
@@ -12,4 +12,4 @@
 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 #  See the License for the specific language governing permissions and
 #  limitations under the License.
-artifact.version=1.1
+artifact.version=1.2alpha




svn commit: r697019 - in /ant/ivy/ivyde/trunk: org.apache.ivyde.eclipse/ org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/ test/ivy-base-dir/ test/ivy-base-dir/settings/ test/ivy

2008-09-19 Thread hibou
Author: hibou
Date: Fri Sep 19 02:46:01 2008
New Revision: 697019

URL: http://svn.apache.org/viewvc?rev=697019&view=rev
Log:
IVYDE-52:
- now the ivy base dir is set to the eclipse project location
- test project added, and it is correctly resolved

Added:
ant/ivy/ivyde/trunk/test/ivy-base-dir/   (with props)
ant/ivy/ivyde/trunk/test/ivy-base-dir/.classpath
ant/ivy/ivyde/trunk/test/ivy-base-dir/.project
ant/ivy/ivyde/trunk/test/ivy-base-dir/ivy.xml   (with props)
ant/ivy/ivyde/trunk/test/ivy-base-dir/settings/
ant/ivy/ivyde/trunk/test/ivy-base-dir/settings/ivysettings.xml   (with 
props)
ant/ivy/ivyde/trunk/test/ivy-base-dir/src/
Modified:
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/CHANGES.txt

ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainerConfiguration.java

Modified: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/CHANGES.txt?rev=697019&r1=697018&r2=697019&view=diff
==
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/CHANGES.txt (original)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/CHANGES.txt Fri Sep 19 
02:46:01 2008
@@ -9,6 +9,7 @@
 - NEW: Handle a project: scheme for the path of the ivysettings.xml (IVYDE-94)
 - NEW: Need CleanCache task in context menu (IVYDE-114)
 
+- IMPROVE: Set current working dir to eclipse project location (IVYDE-52)
 - IMPROVE: Make the classpath entries order configuration UI more intuitive 
(IVYDE-104)
 - IMPROVE: Retrieve after resolve feature does not clean target directory 
first (IVYDE-105)
 

Modified: 
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainerConfiguration.java
URL: 
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainerConfiguration.java?rev=697019&r1=697018&r2=697019&view=diff
==
--- 
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainerConfiguration.java
 (original)
+++ 
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainerConfiguration.java
 Fri Sep 19 02:46:01 2008
@@ -31,6 +31,7 @@
 
 import org.apache.ivy.Ivy;
 import org.apache.ivy.core.module.descriptor.ModuleDescriptor;
+import org.apache.ivy.core.settings.IvySettings;
 import org.apache.ivy.plugins.parser.ModuleDescriptorParserRegistry;
 import org.apache.ivy.util.Message;
 import org.apache.ivyde.eclipse.IvyDEException;
@@ -373,9 +374,12 @@
 if (settingsPath == null || settingsPath.trim().length() == 0) {
 // no settings specified, so take the default one
 if (ivy == null) {
-ivy = new Ivy();
+IvySettings ivySettings = new IvySettings();
+if (javaProject != null) {
+
ivySettings.setBaseDir(javaProject.getProject().getLocation().toFile());
+}
 try {
-ivy.configureDefault();
+ivySettings.loadDefault();
 } catch (ParseException e) {
 IvyDEException ex = new IvyDEException(
 "Parsing error of the default Ivy settings",
@@ -391,6 +395,7 @@
 setConfStatus(ex);
 throw ex;
 }
+ivy = Ivy.newInstance(ivySettings);
 }
 setConfStatus(null);
 return ivy;
@@ -402,7 +407,7 @@
 String path = settingsPath.substring(pathIndex + 1);
 if (projectName.equals("")) {
 IFile f = javaProject.getProject().getFile(path);
-File file = new File(f.getLocation().toOSString());
+File file = f.getLocation().toFile();
 return getIvy(file);
 } else {
 try {
@@ -425,8 +430,11 @@
 File file = new File(f.getLocation().toOSString());
 return getIvy(file);
 } catch (JavaModelException e) {
-// TODO Auto-generated catch block
-e.printStackTrace();
+IvyDEException ex = new IvyDEException("The workspace is 
broken",
+"The projects in the workspace could not be listed 
when resolving the settings ("
++ this.toString() + ")", null);
+setConfStatus(ex);
+throw ex;
 }
 }
 }
@@ -447,9 +455,12 @@
 } else {
 // an URL but not a file
 if (ivy == null || ivySettingsLastModified == -1) {
-ivy =

svn commit: r697020 - /ant/core/trunk/src/etc/performance/dirscanner.xml

2008-09-19 Thread bodewig
Author: bodewig
Date: Fri Sep 19 02:51:35 2008
New Revision: 697020

URL: http://svn.apache.org/viewvc?rev=697020&view=rev
Log:
wrong property name

Modified:
ant/core/trunk/src/etc/performance/dirscanner.xml

Modified: ant/core/trunk/src/etc/performance/dirscanner.xml
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/etc/performance/dirscanner.xml?rev=697020&r1=697019&r2=697020&view=diff
==
--- ant/core/trunk/src/etc/performance/dirscanner.xml (original)
+++ ant/core/trunk/src/etc/performance/dirscanner.xml Fri Sep 19 02:51:35 2008
@@ -186,7 +186,7 @@
 
   
-
+
   
 
 




[jira] Resolved: (IVYDE-52) Set current working dir to eclipse project location

2008-09-19 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/IVYDE-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Lalevée resolved IVYDE-52.
--

   Resolution: Fixed
Fix Version/s: 2.0
 Assignee: Nicolas Lalevée

> Set current working dir to eclipse project location
> ---
>
> Key: IVYDE-52
> URL: https://issues.apache.org/jira/browse/IVYDE-52
> Project: IvyDE
>  Issue Type: Improvement
>Affects Versions: 1.2.0
>Reporter: Johannes Stamminger
>Assignee: Nicolas Lalevée
> Fix For: 2.0
>
>
> Currently the working directory is the one having started eclipse from.
> We use in our ivy configurations relative pathes e.g. in the ivy settings 
> file within an include. This does work currently only with having started 
> eclipse from within the "correct" directory and we have to restart eclipse on 
> switching the project.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



svn commit: r697032 - in /ant/core/trunk/src/main/org/apache/tools/ant: DirectoryScanner.java types/selectors/TokenizedPath.java

2008-09-19 Thread bodewig
Author: bodewig
Date: Fri Sep 19 03:17:12 2008
New Revision: 697032

URL: http://svn.apache.org/viewvc?rev=697032&view=rev
Log:
remove memoization which measurably (sp?) hurts performance more than it helps

Modified:
ant/core/trunk/src/main/org/apache/tools/ant/DirectoryScanner.java

ant/core/trunk/src/main/org/apache/tools/ant/types/selectors/TokenizedPath.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/DirectoryScanner.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/DirectoryScanner.java?rev=697032&r1=697031&r2=697032&view=diff
==
--- ant/core/trunk/src/main/org/apache/tools/ant/DirectoryScanner.java 
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/DirectoryScanner.java Fri Sep 
19 03:17:12 2008
@@ -281,18 +281,6 @@
 // CheckStyle:VisibilityModifier ON
 
 /**
- * Temporary table to speed up the various scanning methods.
- *
- * @since Ant 1.6
- */
-private Map fileListMap = new HashMap();
-
-/**
- * Uses fileListMap to cache directory listings.
- */
-private final TokenizedPath.FileLister fileLister = new CachedFileLister();
-
-/**
  * List of all scanned directories.
  *
  * @since Ant 1.6
@@ -403,13 +391,6 @@
 private int maxLevelsOfSymlinks = MAX_LEVELS_OF_SYMLINKS;
 
 /**
- * Temporary table to speed up checking of canonical file names.
- *
- * @since Ant 1.8.0
- */
-private Map canonicalPathMap = new HashMap();
-
-/**
  * Sole constructor.
  */
 public DirectoryScanner() {
@@ -938,7 +919,7 @@
 File canonBase = null;
 if (basedir != null) {
 try {
-canonBase = getCanonicalFile(basedir);
+canonBase = basedir.getCanonicalFile();
 } catch (IOException ex) {
 throw new BuildException(ex);
 }
@@ -959,12 +940,11 @@
 // we need to double check.
 try {
 String path = (basedir == null)
-? getCanonicalPath(myfile)
+? myfile.getCanonicalPath()
 : FILE_UTILS.removeLeadingPath(canonBase,
- getCanonicalFile(myfile));
+ myfile.getCanonicalFile());
 if (!path.equals(currentelement) || ON_VMS) {
-myfile = currentPath.findFile(basedir, true,
-  fileLister);
+myfile = currentPath.findFile(basedir, true);
 if (myfile != null && basedir != null) {
 currentelement = FILE_UTILS.removeLeadingPath(
 basedir, myfile);
@@ -981,7 +961,7 @@
 }
 
 if ((myfile == null || !myfile.exists()) && 
!isCaseSensitive()) {
-File f = currentPath.findFile(basedir, false, fileLister);
+File f = currentPath.findFile(basedir, false);
 if (f != null && f.exists()) {
 // adapt currentelement to the case we've
 // actually found
@@ -1169,7 +1149,7 @@
 if (dir == null) {
 throw new BuildException("dir must not be null.");
 }
-String[] newfiles = list(dir);
+String[] newfiles = dir.list();
 if (newfiles == null) {
 if (!dir.exists()) {
 throw new BuildException(dir + DOES_NOT_EXIST_POSTFIX);
@@ -1223,7 +1203,7 @@
 String name = vpath + newfiles[i];
 TokenizedPath newPath = new TokenizedPath(path, newfiles[i]);
 File file = new File(dir, newfiles[i]);
-String[] children = list(file);
+String[] children = file.list();
 if (children == null) { // probably file
 if (isIncluded(newPath)) {
 accountForIncludedFile(newPath, file);
@@ -1721,37 +1701,6 @@
 return new FileResource(basedir, name);
 }
 
-private static final String[] NULL_FILE_LIST = new String[0];
-
-/**
- * Return a cached result of list performed on file, if
- * available.  Invokes the method and caches the result otherwise.
- *
- * @param file File (dir) to list.
- * @since Ant 1.6
- */
-private String[] list(File file) {
-String[] files = null;
-SoftReference s = (SoftReference) fileListMap.get(file);
-if (s != null) {
-files = (String[]) s.get();
-if (files == null) {
-fileListMap.remove(file);
-}
-}
-if (files == null) {
-files = file.list();
-if (files != null) {
- 

svn commit: r697038 - /ant/core/trunk/src/etc/performance/dirscanner.xml

2008-09-19 Thread bodewig
Author: bodewig
Date: Fri Sep 19 03:33:29 2008
New Revision: 697038

URL: http://svn.apache.org/viewvc?rev=697038&view=rev
Log:
alternative scan task that uses resourcecount to isolate memory effect of 
pathconvert (and its result) from scanning

Modified:
ant/core/trunk/src/etc/performance/dirscanner.xml

Modified: ant/core/trunk/src/etc/performance/dirscanner.xml
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/etc/performance/dirscanner.xml?rev=697038&r1=697037&r2=697038&view=diff
==
--- ant/core/trunk/src/etc/performance/dirscanner.xml (original)
+++ ant/core/trunk/src/etc/performance/dirscanner.xml Fri Sep 19 03:33:29 2008
@@ -32,9 +32,11 @@
 Consider taking a nap if you run Ant 1.6.x or 1.7.0 against a
 "big" setup.
 
-The tests use the pathconvert task whose performance should be
-dominated by directory scanner, they would use ressourcecount if
-that had been available in Ant 1.6.5.
+If Ant 1.6.x is detected or the property ant16 has been specified
+on the command line then the tests will use the pathconvert task
+instead of resourcecount.  So if you want to compare Ant 1.6.x
+with later versions of you must specify ant16 on the command line
+during your 1.[78].x tests.
 
 The tests will use the default settings of followsymlinks="true"
 and casesensitive="true" unless those values get overwritten by
@@ -46,6 +48,10 @@
   
   
 
+  
+
+  
+
   This is ${ant.version}
 
   
@@ -154,6 +160,7 @@
 
   
 
+  
   
 
 
@@ -168,13 +175,33 @@
   
 
   
+  
+
+  
+
+  
+  
+  
+
+  
+
+  
+
+  
+
+  
+
+  
 
   
 
   
 
   
 
   
@@ -185,6 +212,7 @@
   
 
   
 
   
@@ -233,6 +261,7 @@
   
 
   
 
   
@@ -243,6 +272,7 @@
   
 
   
 
   
@@ -253,6 +283,7 @@
   
 
   
 
   
@@ -281,5 +312,5 @@
   
 
   
+  depends="define-scan,matchall, roots, recursive-excludes, 
name-matches, many-patterns, many-roots"/>
 




svn commit: r697073 - /ant/core/trunk/src/main/org/apache/tools/ant/DirectoryScanner.java

2008-09-19 Thread bodewig
Author: bodewig
Date: Fri Sep 19 05:48:58 2008
New Revision: 697073

URL: http://svn.apache.org/viewvc?rev=697073&view=rev
Log:
no need to clone a linked list to iterate through it

Modified:
ant/core/trunk/src/main/org/apache/tools/ant/DirectoryScanner.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/DirectoryScanner.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/DirectoryScanner.java?rev=697073&r1=697072&r2=697073&view=diff
==
--- ant/core/trunk/src/main/org/apache/tools/ant/DirectoryScanner.java 
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/DirectoryScanner.java Fri Sep 
19 05:48:58 2008
@@ -1785,20 +1785,21 @@
 private boolean causesIllegalSymlinkLoop(String dirName, File parent,
  LinkedList 
directoryNamesFollowed) {
 try {
-if (CollectionUtils.frequency(directoryNamesFollowed, dirName)
+if (directoryNamesFollowed.size() >= maxLevelsOfSymlinks
+&& CollectionUtils.frequency(directoryNamesFollowed, dirName)
>= maxLevelsOfSymlinks
 && FILE_UTILS.isSymbolicLink(parent, dirName)) {
 
-LinkedList s = (LinkedList) directoryNamesFollowed.clone();
 ArrayList files = new ArrayList();
 File f = FILE_UTILS.resolveFile(parent, dirName);
 String target = f.getCanonicalPath();
 files.add(target);
 
 String relPath = "";
-while (s.size() > 0) {
+for (Iterator i = directoryNamesFollowed.iterator();
+ i.hasNext(); ) {
 relPath += "../";
-String dir = (String) s.removeFirst();
+String dir = (String) i.next();
 if (dirName.equals(dir)) {
 f = FILE_UTILS.resolveFile(parent, relPath + dir);
 files.add(f.getCanonicalPath());




svn commit: r697082 - in /ant/ivy/ivyde/trunk: build.properties build.xml org.apache.ivyde.feature/feature.properties org.apache.ivyde.feature/feature.xml

2008-09-19 Thread hibou
Author: hibou
Date: Fri Sep 19 06:15:57 2008
New Revision: 697082

URL: http://svn.apache.org/viewvc?rev=697082&view=rev
Log:
Simplify the build as there is no more updatesite to handle here, and no more 
ivy feature to handle neither

Modified:
ant/ivy/ivyde/trunk/build.properties
ant/ivy/ivyde/trunk/build.xml
ant/ivy/ivyde/trunk/org.apache.ivyde.feature/feature.properties
ant/ivy/ivyde/trunk/org.apache.ivyde.feature/feature.xml

Modified: ant/ivy/ivyde/trunk/build.properties
URL: 
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/build.properties?rev=697082&r1=697081&r2=697082&view=diff
==
--- ant/ivy/ivyde/trunk/build.properties (original)
+++ ant/ivy/ivyde/trunk/build.properties Fri Sep 19 06:15:57 2008
@@ -17,4 +17,5 @@
 #   * under the License.
 #   ***
 
-version.qualifier=alpha1
+version.qualifier=beta1
+outputUpdateJars=true

Modified: ant/ivy/ivyde/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/build.xml?rev=697082&r1=697081&r2=697082&view=diff
==
--- ant/ivy/ivyde/trunk/build.xml (original)
+++ ant/ivy/ivyde/trunk/build.xml Fri Sep 19 06:15:57 2008
@@ -41,11 +41,7 @@
 
 
 
-
-
-
-
-
+
 
 
 
@@ -163,110 +159,33 @@
 
 
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+http://apache.org/dist/ant/ivy/2.0.0-rc1/apache-ivy-2.0.0-rc1-bin.zip"; 
usetimestamp="true" dest="apache-ivy-2.0.0-rc1-bin.zip" />
+
+
+
+
 
 
 
 
 
-
-
-
-
-
-
 
 
 
 
 
 
-
-
-
-
-
-
 
 
 
 
 
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-http://apache.org/dist/ant/ivy/2.0.0-beta2/apache-ivy-2.0.0-beta2-bin.zip"; 
usetimestamp="true" dest="apache-ivy-2.0.0-beta2-bin.zip" />
-
-
-
-
-
-
-
-
-
-
 
 
 
-
-
-
-
-
-
 
 
 
@@ -279,12 +198,6 @@
 
 
 
-
-
-
-
-
-
 
 
 

Modified: ant/ivy/ivyde/trunk/org.apache.ivyde.feature/feature.properties
URL: 
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.feature/feature.properties?rev=697082&r1=697081&r2=697082&view=diff
==
--- ant/ivy/ivyde/trunk/org.apache.ivyde.feature/feature.properties (original)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.feature/feature.properties Fri Sep 19 
06:15:57 2008
@@ -17,3 +17,27 @@
 #   * under the License.
 #   ***
 
+featureName=Apache IvyDE
+providerName=Apache Software Foundation
+
+updateSiteName=The Apache IvyDE Updates
+
+description=IvyDE Eclipse plugin
+
+license=Licensed to the Apache Software Foundation (ASF) under one\n\
+or more contributor license agreements.  See the NOTICE file\n\
+distributed with this work for additional information\n\
+regarding copyright ownership.  The ASF licenses this file\n\
+to you under the Apache License, Version 2.0 (the\n\
+"License"); you may not use this file except in compliance\n\
+with the License.  You may obtain a copy of the License at\n\
+\n\
+  http://www.apache.org/licenses/LICENSE-2.0\n\
+\n\
+Unless required by applicable law or agreed to in writing,\n\
+software distributed under the License is distributed on an\n\
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n\
+KIND, either express or implied.  See the License for the\n\
+specific language governing permissions and limitations\n\
+under the License.
+

Modified: ant/ivy/ivyde/trunk/org.apache.ivyde.feature/feature.xml
URL: 
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.feature/feature.xml?rev=697082&r1=697081&r

svn commit: r697116 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Classloader.java

2008-09-19 Thread bodewig
Author: bodewig
Date: Fri Sep 19 07:51:27 2008
New Revision: 697116

URL: http://svn.apache.org/viewvc?rev=697116&view=rev
Log:
make log more usefull.  PR 45841.

Modified:
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Classloader.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Classloader.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Classloader.java?rev=697116&r1=697115&r2=697116&view=diff
==
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Classloader.java 
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Classloader.java Fri 
Sep 19 07:51:27 2008
@@ -225,9 +225,9 @@
 for (int i = 0; i < list.length; i++) {
 File f = new File(list[i]);
 if (f.exists()) {
-acl.addPathElement(f.getAbsolutePath());
 log("Adding to class loader " +  acl + " " + 
f.getAbsolutePath(),
 Project.MSG_DEBUG);
+acl.addPathElement(f.getAbsolutePath());
 }
 }
 }




DO NOT REPLY [Bug 45841] Classloader task - move log message

2008-09-19 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45841


Stefan Bodewig <[EMAIL PROTECTED]> changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |1.8.0




--- Comment #1 from Stefan Bodewig <[EMAIL PROTECTED]>  2008-09-19 07:51:41 PST 
---
committed as svn rev 697116, thanks.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


DO NOT REPLY [Bug 45836] [PATCH] For correct empty CBzip2OutputStream handling

2008-09-19 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45836


Stefan Bodewig <[EMAIL PROTECTED]> changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |1.8.0




--- Comment #1 from Stefan Bodewig <[EMAIL PROTECTED]>  2008-09-19 08:05:11 PST 
---
patch committed as svn revision 697122, thanks!


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


svn commit: r697122 - in /ant/core/trunk: CONTRIBUTORS WHATSNEW contributors.xml src/main/org/apache/tools/bzip2/CBZip2OutputStream.java

2008-09-19 Thread bodewig
Author: bodewig
Date: Fri Sep 19 08:04:54 2008
New Revision: 697122

URL: http://svn.apache.org/viewvc?rev=697122&view=rev
Log:
create useable output even if the input is empty.  PR 45836.  Submitted by Tom 
May.

Modified:
ant/core/trunk/CONTRIBUTORS
ant/core/trunk/WHATSNEW
ant/core/trunk/contributors.xml
ant/core/trunk/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java

Modified: ant/core/trunk/CONTRIBUTORS
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/CONTRIBUTORS?rev=697122&r1=697121&r2=697122&view=diff
==
Binary files - no diff available.

Modified: ant/core/trunk/WHATSNEW
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/WHATSNEW?rev=697122&r1=697121&r2=697122&view=diff
==
--- ant/core/trunk/WHATSNEW (original)
+++ ant/core/trunk/WHATSNEW Fri Sep 19 08:04:54 2008
@@ -56,7 +56,7 @@
 
  * CBZip2InputStream will now throw an IOException if
passed in a null or empty InputStream to read from.
-   Bugzilla Report 32200
+   Bugzilla Reports 32200.
 
  *  will now fail when trying to extract certain broken
archives that would have been silently ignored in earlier version.
@@ -166,9 +166,9 @@
 
  * CBZip2OutputStream threw an exception if it was closed prior to
writing anything.
-   Bugzilla Report 32200
+   Bugzilla Reports 32200, 45836
 
- * The IPlanetDeploymentToll didn't use the configured DTD locations.
+ * The IPlanetDeploymentTool didn't use the configured DTD locations.
Bugzilla Report 31876.
 
  * The ant shell script printed a warning unser Cygwin if JAVA_HOME

Modified: ant/core/trunk/contributors.xml
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/contributors.xml?rev=697122&r1=697121&r2=697122&view=diff
==
--- ant/core/trunk/contributors.xml (original)
+++ ant/core/trunk/contributors.xml Fri Sep 19 08:04:54 2008
@@ -1168,6 +1168,10 @@
 Eugelink
   
   
+Tom
+May
+  
+  
 Trejkaz
 Xaoz
   

Modified: ant/core/trunk/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java?rev=697122&r1=697121&r2=697122&view=diff
==
--- ant/core/trunk/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java 
(original)
+++ ant/core/trunk/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java Fri 
Sep 19 08:04:54 2008
@@ -434,6 +434,12 @@
 combinedCRC = (combinedCRC << 1) | (combinedCRC >>> 31);
 combinedCRC ^= blockCRC;
 
+// If the stream was empty we must skip the rest of this method.
+// See bug#32200.
+if (last == -1) {
+   return;
+}
+
 /* sort the block and establish posn of original string */
 doReversibleTransformation();
 
@@ -1131,15 +1137,7 @@
 */
 
 //   if (verbosity >= 4) fprintf ( stderr, "   sort initialise ...\n" 
);
-
-// set last to zero in case it's never been set before
-// see bug#32200, initBlock is the real culprit 
-// setting last to -1, but not sure if this -1 is important
-// in normal scheme
-if (last < 0) {
-last = 0;
-}
-
+
 for (i = 0; i < NUM_OVERSHOOT_BYTES; i++) {
 block[last + i + 2] = block[(i % (last + 1)) + 1];
 }




DO NOT REPLY [Bug 45845] New: Possibly remove reverse() in Classloader task

2008-09-19 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45845

   Summary: Possibly remove reverse() in Classloader task
   Product: Ant
   Version: 1.7.1
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P2
 Component: Core tasks
AssignedTo: notifications@ant.apache.org
ReportedBy: [EMAIL PROTECTED]


Can we drop one of these, I was trying both not realizing that they were
changing the same property, but in reverse.

/**
 * Set reverse attribute.
 * @param b if true reverse the normal classloader lookup.
 */
public void setReverse(boolean b) {
this.parentFirst = !b;
}

/**
 * Set reverse attribute.
 * @param b if true reverse the normal classloader lookup.
 */
public void setParentFirst(boolean b) {
this.parentFirst = b;
}


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


DO NOT REPLY [Bug 39189] should permit selection of alternate executable

2008-09-19 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=39189


Stefan Bodewig <[EMAIL PROTECTED]> changed:

   What|Removed |Added

 CC||notifications@ant.apache.org
 AssignedTo|notifications@ant.apache.org|[EMAIL PROTECTED]




-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.
You are the assignee for the bug.


svn commit: r697133 - in /ant/core/trunk: WHATSNEW docs/manual/CoreTasks/signjar.html src/main/org/apache/tools/ant/taskdefs/AbstractJarSignerTask.java

2008-09-19 Thread bodewig
Author: bodewig
Date: Fri Sep 19 08:28:34 2008
New Revision: 697133

URL: http://svn.apache.org/viewvc?rev=697133&view=rev
Log:
allow executable of signjar and verifyjat to be configured.  PR 39189.

Modified:
ant/core/trunk/WHATSNEW
ant/core/trunk/docs/manual/CoreTasks/signjar.html

ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AbstractJarSignerTask.java

Modified: ant/core/trunk/WHATSNEW
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/WHATSNEW?rev=697133&r1=697132&r2=697133&view=diff
==
--- ant/core/trunk/WHATSNEW (original)
+++ ant/core/trunk/WHATSNEW Fri Sep 19 08:28:34 2008
@@ -371,6 +371,10 @@
ProjectHelper2 will be used just like in ant 1.7.1.
Bugzilla Report 42208.
 
+ * It is now possible to explicitly set the executable used by
+   .
+   Bugzilla Report 39189.
+
 Changes from Ant 1.7.0 TO Ant 1.7.1
 =
 

Modified: ant/core/trunk/docs/manual/CoreTasks/signjar.html
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/CoreTasks/signjar.html?rev=697133&r1=697132&r2=697133&view=diff
==
--- ant/core/trunk/docs/manual/CoreTasks/signjar.html (original)
+++ ant/core/trunk/docs/manual/CoreTasks/signjar.html Fri Sep 19 08:28:34 2008
@@ -141,7 +141,17 @@
 timestamped JAR files in Java1.5+
 No
   
-  
+  
+executable
+Specify a particular jarsigner executable
+  to use in place of the default binary (found in the same JDK as
+  Ant is running in).
+  Must support the same command line options as the Sun JDK
+  jarsigner command.
+  since Ant 1.8.0.
+all
+No
+
 
 Parameters as nested elements
 

Modified: 
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AbstractJarSignerTask.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AbstractJarSignerTask.java?rev=697133&r1=697132&r2=697133&view=diff
==
--- 
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AbstractJarSignerTask.java
 (original)
+++ 
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AbstractJarSignerTask.java
 Fri Sep 19 08:28:34 2008
@@ -104,6 +104,13 @@
 private Path path = null;
 
 /**
+ * The executable to use instead of jarsigner.
+ *
+ * @since Ant 1.8.0
+ */
+private String executable;
+
+/**
  * Set the maximum memory to be used by the jarsigner process
  *
  * @param max a string indicating the maximum memory according to the JVM
@@ -251,6 +258,16 @@
 }
 
 /**
+ * Sets the actual executable command to invoke, instead of the binary
+ * jarsigner found in Ant's JDK.
+ * @param executable the command to invoke.
+ * @since Ant 1.8.0
+ */
+public void setExecutable(String executable) {
+this.executable = executable;
+}
+
+/**
  * these are options common to signing and verifying
  * @param cmd  command to configure
  */
@@ -315,7 +332,11 @@
  */
 protected ExecTask createJarSigner() {
 final ExecTask cmd = new ExecTask(this);
-cmd.setExecutable(JavaEnvUtils.getJdkExecutable(JARSIGNER_COMMAND));
+if (executable == null) {
+
cmd.setExecutable(JavaEnvUtils.getJdkExecutable(JARSIGNER_COMMAND));
+} else {
+cmd.setExecutable(executable);
+}
 cmd.setTaskType(JARSIGNER_COMMAND);
 cmd.setFailonerror(true);
 cmd.addConfiguredRedirector(redirector);




DO NOT REPLY [Bug 39189] should permit selection of alternate executable

2008-09-19 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=39189


Stefan Bodewig <[EMAIL PROTECTED]> changed:

   What|Removed |Added

   Severity|normal  |enhancement
 Status|NEW |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |1.8.0




--- Comment #3 from Stefan Bodewig <[EMAIL PROTECTED]>  2008-09-19 08:28:51 PST 
---
supported starting with svn revision 697133.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.


svn commit: r697139 - in /ant/core/trunk: WHATSNEW src/etc/testcases/taskdefs/signjar.xml src/etc/testcases/testkeystore src/main/org/apache/tools/ant/taskdefs/condition/IsSigned.java src/tests/junit/

2008-09-19 Thread bodewig
Author: bodewig
Date: Fri Sep 19 08:53:20 2008
New Revision: 697139

URL: http://svn.apache.org/viewvc?rev=697139&view=rev
Log:
properly handle non-standard chars in key alias.  PR 45820.

Modified:
ant/core/trunk/WHATSNEW
ant/core/trunk/src/etc/testcases/taskdefs/signjar.xml
ant/core/trunk/src/etc/testcases/testkeystore

ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/IsSigned.java

ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/SignJarTest.java

Modified: ant/core/trunk/WHATSNEW
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/WHATSNEW?rev=697139&r1=697138&r2=697139&view=diff
==
--- ant/core/trunk/WHATSNEW (original)
+++ ant/core/trunk/WHATSNEW Fri Sep 19 08:53:20 2008
@@ -222,6 +222,10 @@
regardless of their configuration.
Bugzilla Report 37970.
 
+ *  and  didn't handle aliases with characters other
+   than numbers, letters, hyphen or underscore properly.
+   Bugzilla Report 45820.
+
 Other changes:
 --
 

Modified: ant/core/trunk/src/etc/testcases/taskdefs/signjar.xml
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/etc/testcases/taskdefs/signjar.xml?rev=697139&r1=697138&r2=697139&view=diff
==
--- ant/core/trunk/src/etc/testcases/taskdefs/signjar.xml (original)
+++ ant/core/trunk/src/etc/testcases/taskdefs/signjar.xml Fri Sep 19 08:53:20 
2008
@@ -80,6 +80,11 @@
  
   
 
+  
+
+ 
+  
+
   
 
  

Modified: ant/core/trunk/src/etc/testcases/testkeystore
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/etc/testcases/testkeystore?rev=697139&r1=697138&r2=697139&view=diff
==
Binary files - no diff available.

Modified: 
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/IsSigned.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/IsSigned.java?rev=697139&r1=697138&r2=697139&view=diff
==
--- 
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/IsSigned.java 
(original)
+++ 
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/IsSigned.java 
Fri Sep 19 08:53:20 2008
@@ -23,6 +23,7 @@
 
 import org.apache.tools.ant.BuildException;
 import org.apache.tools.ant.Project;
+import org.apache.tools.ant.taskdefs.ManifestTask;
 import org.apache.tools.ant.types.DataType;
 import org.apache.tools.zip.ZipEntry;
 import org.apache.tools.zip.ZipFile;
@@ -84,6 +85,7 @@
 }
 return false;
 }
+name = replaceInvalidChars(name);
 boolean shortSig = jarFile.getEntry(SIG_START
 + name.toUpperCase()
 + SIG_END) != null;
@@ -131,4 +133,20 @@
 }
 return r;
 }
+
+private static String replaceInvalidChars(final String name) {
+StringBuffer sb = new StringBuffer();
+final int len = name.length();
+boolean changes = false;
+for (int i = 0; i < len; i++) {
+final char ch = name.charAt(i);
+if (ManifestTask.VALID_ATTRIBUTE_CHARS.indexOf(ch) < 0) {
+sb.append("_");
+changes = true;
+} else {
+sb.append(ch);
+}
+}
+return changes ? sb.toString() : name;
+}
 }

Modified: 
ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/SignJarTest.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/SignJarTest.java?rev=697139&r1=697138&r2=697139&view=diff
==
--- 
ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/SignJarTest.java 
(original)
+++ 
ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/SignJarTest.java 
Fri Sep 19 08:53:20 2008
@@ -70,6 +70,17 @@
sj.isSigned());
 }
 
+public void testInvalidChars() {
+executeTarget("invalidchars");
+SignJarChild sj = new SignJarChild();
+sj.setAlias("[EMAIL PROTECTED]");
+sj.setKeystore("testkeystore");
+sj.setStorepass("apacheant");
+File jar = new File(getProject().getProperty("test.jar"));
+sj.setJar(jar);
+assertTrue(sj.isSigned());
+}
+
 /**
  * subclass in order to get access to protected isSigned method if
  * tests and task come from different classloaders.




DO NOT REPLY [Bug 45820] IsSigned conditions doesn't work correctly for alias with invalid characters

2008-09-19 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45820


Stefan Bodewig <[EMAIL PROTECTED]> changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Comment #1 from Stefan Bodewig <[EMAIL PROTECTED]>  2008-09-19 08:53:38 PST 
---
svn revision 697139


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.


DO NOT REPLY [Bug 45846] New: Ant 1.7.1 resolves UNC path file imports incorrectly on windows

2008-09-19 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45846

   Summary: Ant 1.7.1 resolves UNC path file imports incorrectly on
windows
   Product: Ant
   Version: 1.7.1
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: major
  Priority: P2
 Component: Core
AssignedTo: notifications@ant.apache.org
ReportedBy: [EMAIL PROTECTED]


Hi,

I have a core build file deployed on a network file system that is accessible
from both windows and unix. This core build file is imported and used by a
number of other project builds that just provide properties to configure the
core build for usage. 

The core build file imports a number of other files containing utility
macrodefs etc. These are deployed in the same directory as the core build (I
use the dirname task to construct the import path for the other files). It uses
UNC style paths to do this, for example:

  

Paths like this were handled without issue in ant 1.6.5. On unix the extra
forward slash was irrelevant and on windows the path seps were flipped by java
to yield a valid UNC path. However, if I run the following import on windows
under a Java 6 VM with ant 1.7.1 I now get this error:

Cannot find build-utils.xml imported from
C:\u\some\path\accessible\from\windows\and\unix\machines\build.xml

I have seen a related problem if I put ant on the path using a UNC path (e.g.
if I deploy my ant install on a network drive). When I run ant I get this
exception.

java.lang.ClassNotFoundException: org.apache.tools.ant.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:255)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

This goes if I map a network drive to the ant deployment directory and put it
on the path using a path via this drive instead.

Does anyone know what's going one here?

Thanks,

Miles


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


DO NOT REPLY [Bug 45847] New: Classloader task - duplicate path elements added

2008-09-19 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45847

   Summary: Classloader task - duplicate path elements added
   Product: Ant
   Version: 1.7.1
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P2
 Component: Core tasks
AssignedTo: notifications@ant.apache.org
ReportedBy: [EMAIL PROTECTED]


This cropped up for me when trying:



which does this in execute():

acl = new AntClassLoader((ClassLoader) parent,
 getProject(), classpath, parentFirst);

and then:

if (classpath != null) {
String[] list = classpath.list();
for (int i = 0; i < list.length; i++) {
File f = new File(list[i]);
if (f.exists()) {
acl.addPathElement(f.getAbsolutePath());
log("Adding to class loader " +  acl + " " +
f.getAbsolutePath(),
Project.MSG_DEBUG);
}
}
}

adding twice, and yielded debugging:

[classloader] Adding to class loader
AntClassLoader[...\commons-net-1.4.1.jar;...\jakarta-oro-2.0.8.jar;...\ant-commons-net.jar;...\commons-net-1.4.1.jar]
...\commons-net-1.4.1.jar
[classloader] Adding to class loader
AntClassLoader[...\commons-net-1.4.1.jar;...\jakarta-oro-2.0.8.jar;...\ant-commons-net.jar;...\commons-net-1.4.1.jar;...\jakarta-oro-2.0.8.jar]
...\jakarta-oro-2.0.8.jar
[classloader] Adding to class loader
AntClassLoader[...\commons-net-1.4.1.jar;...\jakarta-oro-2.0.8.jar;...\ant-commons-net.jar;...\commons-net-1.4.1.jar;...\jakarta-oro-2.0.8.jar;...\ant-commons-net.jar]
...\ant-commons-net.jar

The classpath is set when the AntClassLoader is created, so the second block
isn't needed.  Since the second block was doing logging, may want to add loggin
into AntClassLoader for addPathComponent() and addPathFile().


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


DO NOT REPLY [Bug 45848] New: AntClassLoader missing a test before adding a path component

2008-09-19 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45848

   Summary: AntClassLoader missing a test before adding a path
component
   Product: Ant
   Version: 1.7.1
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P2
 Component: Core
AssignedTo: notifications@ant.apache.org
ReportedBy: [EMAIL PROTECTED]


Like addPathComponent():

public void addPathComponent(File file) {
if (pathComponents.contains(file)) {
return;
}
pathComponents.addElement(file);
}

I think addPathFile():

protected void addPathFile(File pathComponent) throws IOException {
pathComponents.addElement(pathComponent);
if (pathComponent.isDirectory()) {
return;
}
...
}

should be testing with:

if (pathComponents.contains(file)) {
return;
}

before calling addElement().

This cropped up for me when trying:



which does this in execute():

acl = new AntClassLoader((ClassLoader) parent,
 getProject(), classpath, parentFirst);

and then:

if (classpath != null) {
String[] list = classpath.list();
for (int i = 0; i < list.length; i++) {
File f = new File(list[i]);
if (f.exists()) {
acl.addPathElement(f.getAbsolutePath());
log("Adding to class loader " +  acl + " " +
f.getAbsolutePath(),
Project.MSG_DEBUG);
}
}
}

adding twice, and yielded debugging:

[classloader] Adding to class loader
AntClassLoader[...\commons-net-1.4.1.jar;...\jakarta-oro-2.0.8.jar;...\ant-commons-net.jar;...\commons-net-1.4.1.jar]
...\commons-net-1.4.1.jar
[classloader] Adding to class loader
AntClassLoader[...\commons-net-1.4.1.jar;...\jakarta-oro-2.0.8.jar;...\ant-commons-net.jar;...\commons-net-1.4.1.jar;...\jakarta-oro-2.0.8.jar]
...\jakarta-oro-2.0.8.jar
[classloader] Adding to class loader
AntClassLoader[...\commons-net-1.4.1.jar;...\jakarta-oro-2.0.8.jar;...\ant-commons-net.jar;...\commons-net-1.4.1.jar;...\jakarta-oro-2.0.8.jar;...\ant-commons-net.jar]
...\ant-commons-net.jar

The test will prevent any duplicates.  I'll enter a separate defect for
Classloader for the duplicate add calls.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


svn commit: r697194 - in /ant/ivy/ivyde/trunk: build.properties build.xml org.apache.ivy.feature/

2008-09-19 Thread hibou
Author: hibou
Date: Fri Sep 19 12:18:43 2008
New Revision: 697194

URL: http://svn.apache.org/viewvc?rev=697194&view=rev
Log:
- remove the now useless ivy feature which is now managed when updating the 
updatesite
- make the installation of the ivy bundle more configurable

Removed:
ant/ivy/ivyde/trunk/org.apache.ivy.feature/
Modified:
ant/ivy/ivyde/trunk/build.properties
ant/ivy/ivyde/trunk/build.xml

Modified: ant/ivy/ivyde/trunk/build.properties
URL: 
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/build.properties?rev=697194&r1=697193&r2=697194&view=diff
==
--- ant/ivy/ivyde/trunk/build.properties (original)
+++ ant/ivy/ivyde/trunk/build.properties Fri Sep 19 12:18:43 2008
@@ -19,3 +19,4 @@
 
 version.qualifier=beta1
 outputUpdateJars=true
+ivy.version=2.0.0-beta2

Modified: ant/ivy/ivyde/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/build.xml?rev=697194&r1=697193&r2=697194&view=diff
==
--- ant/ivy/ivyde/trunk/build.xml (original)
+++ ant/ivy/ivyde/trunk/build.xml Fri Sep 19 12:18:43 2008
@@ -161,10 +161,10 @@
 
 
 
-http://apache.org/dist/ant/ivy/2.0.0-rc1/apache-ivy-2.0.0-rc1-bin.zip"; 
usetimestamp="true" dest="apache-ivy-2.0.0-rc1-bin.zip" />
+http://apache.org/dist/ant/ivy/${ivy.version}/apache-ivy-${ivy.version}-bin.zip";
 usetimestamp="true" dest="apache-ivy-${ivy.version}-bin.zip" />
 
-
-
+
+
 
 
 




svn commit: r697198 - in /ant/ivy/ivyde/trunk/test/include-properties: ./ .classpath .project ivy.properties ivy.xml ivysettings.xml src/

2008-09-19 Thread hibou
Author: hibou
Date: Fri Sep 19 12:32:32 2008
New Revision: 697198

URL: http://svn.apache.org/viewvc?rev=697198&view=rev
Log:
IVYDE-90: a test to reproduce the bug

Added:
ant/ivy/ivyde/trunk/test/include-properties/   (with props)
ant/ivy/ivyde/trunk/test/include-properties/.classpath
ant/ivy/ivyde/trunk/test/include-properties/.project
ant/ivy/ivyde/trunk/test/include-properties/ivy.properties   (with props)
ant/ivy/ivyde/trunk/test/include-properties/ivy.xml   (with props)
ant/ivy/ivyde/trunk/test/include-properties/ivysettings.xml   (with props)
ant/ivy/ivyde/trunk/test/include-properties/src/

Propchange: ant/ivy/ivyde/trunk/test/include-properties/
--
--- svn:ignore (added)
+++ svn:ignore Fri Sep 19 12:32:32 2008
@@ -0,0 +1,2 @@
+bin
+

Added: ant/ivy/ivyde/trunk/test/include-properties/.classpath
URL: 
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/test/include-properties/.classpath?rev=697198&view=auto
==
--- ant/ivy/ivyde/trunk/test/include-properties/.classpath (added)
+++ ant/ivy/ivyde/trunk/test/include-properties/.classpath Fri Sep 19 12:32:32 
2008
@@ -0,0 +1,7 @@
+
+
+   
+   
+   
+   
+

Added: ant/ivy/ivyde/trunk/test/include-properties/.project
URL: 
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/test/include-properties/.project?rev=697198&view=auto
==
--- ant/ivy/ivyde/trunk/test/include-properties/.project (added)
+++ ant/ivy/ivyde/trunk/test/include-properties/.project Fri Sep 19 12:32:32 
2008
@@ -0,0 +1,17 @@
+
+
+   ivydetest-include-properties
+   
+   
+   
+   
+   
+   org.eclipse.jdt.core.javabuilder
+   
+   
+   
+   
+   
+   org.eclipse.jdt.core.javanature
+   
+

Added: ant/ivy/ivyde/trunk/test/include-properties/ivy.properties
URL: 
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/test/include-properties/ivy.properties?rev=697198&view=auto
==
--- ant/ivy/ivyde/trunk/test/include-properties/ivy.properties (added)
+++ ant/ivy/ivyde/trunk/test/include-properties/ivy.properties Fri Sep 19 
12:32:32 2008
@@ -0,0 +1 @@
+mymodule.version=1.1
\ No newline at end of file

Propchange: ant/ivy/ivyde/trunk/test/include-properties/ivy.properties
--
svn:eol-style = native

Propchange: ant/ivy/ivyde/trunk/test/include-properties/ivy.properties
--
svn:keywords = Date Revision Author HeadURL Id

Added: ant/ivy/ivyde/trunk/test/include-properties/ivy.xml
URL: 
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/test/include-properties/ivy.xml?rev=697198&view=auto
==
--- ant/ivy/ivyde/trunk/test/include-properties/ivy.xml (added)
+++ ant/ivy/ivyde/trunk/test/include-properties/ivy.xml Fri Sep 19 12:32:32 2008
@@ -0,0 +1,30 @@
+
+ 
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+

Propchange: ant/ivy/ivyde/trunk/test/include-properties/ivy.xml
--
svn:eol-style = native

Propchange: ant/ivy/ivyde/trunk/test/include-properties/ivy.xml
--
svn:keywords = Date Revision Author HeadURL Id

Propchange: ant/ivy/ivyde/trunk/test/include-properties/ivy.xml
--
svn:mime-type = text/xml

Added: ant/ivy/ivyde/trunk/test/include-properties/ivysettings.xml
URL: 
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/test/include-properties/ivysettings.xml?rev=697198&view=auto
==
--- ant/ivy/ivyde/trunk/test/include-properties/ivysettings.xml (added)
+++ ant/ivy/ivyde/trunk/test/include-properties/ivysettings.xml Fri Sep 19 
12:32:32 2008
@@ -0,0 +1,11 @@
+
+   
+
+
+
+
+
+
+
+
+

Propchange: ant/ivy/ivyde/trunk/test/include-properties/ivysettings.xml
--
svn:eol-style = native

Propchange: ant/ivy/ivyde/trunk/test/include-properties/ivysettings.xml
--
svn:keywords = Date Revision Author HeadURL Id

Propchange: ant/ivy/ivyde/trunk/test/include-properties/ivysettings.xml
---

[jira] Resolved: (IVYDE-90) IvyDE does not do property value expansion

2008-09-19 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/IVYDE-90?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Lalevée resolved IVYDE-90.
--

   Resolution: Fixed
Fix Version/s: 2.0
 Assignee: Nicolas Lalevée

I reproduce a failing configuration which now works with the trunk version.
I think that it was mainly fixed by IVY-387.


> IvyDE does not do property value expansion
> --
>
> Key: IVYDE-90
> URL: https://issues.apache.org/jira/browse/IVYDE-90
> Project: IvyDE
>  Issue Type: Bug
>  Components: classpath container
>Affects Versions: 2.0.0.alpha1
> Environment: Eclipse 3.3.1
> MyEclipse 6.0.1
> Aptana 1.1.6
> Ivy/IvyDE plugins from xoocode
>Reporter: Michael Laccetti
>Assignee: Nicolas Lalevée
> Fix For: 2.0
>
> Attachments: IVYDE-90_patch.zip
>
>
> If I create an Ivy properties file with the variables defined in them, and 
> then reference those variables in the built script, Ivy via Ant will pick 
> them up, and inject the correct information.  However, the same does not go 
> for IvyDE; it conks out trying to retrieve 
> --${lala}.
> Sample ivy.roperties
> {noformat}
> spring.version=2.5.3
> {noformat}
> Sample ivysettings.xml
> {code:xml} 
> 
>   
> 
> {code} 
> Sample ivy.xml
> {code:xml} 
> 
>   
>   
>   
>rev="${spring.version}" />
>   
> 
> {code} 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



svn commit: r697208 - /ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/CHANGES.txt

2008-09-19 Thread hibou
Author: hibou
Date: Fri Sep 19 12:37:07 2008
New Revision: 697208

URL: http://svn.apache.org/viewvc?rev=697208&view=rev
Log:
IVYDE-90: add it to the change log

Modified:
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/CHANGES.txt

Modified: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/CHANGES.txt?rev=697208&r1=697207&r2=697208&view=diff
==
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/CHANGES.txt (original)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/CHANGES.txt Fri Sep 19 
12:37:07 2008
@@ -13,6 +13,7 @@
 - IMPROVE: Make the classpath entries order configuration UI more intuitive 
(IVYDE-104)
 - IMPROVE: Retrieve after resolve feature does not clean target directory 
first (IVYDE-105)
 
+- FIX: IvyDE does not do property value expansion (IVYDE-90)
 - FIX: Resolve in workspace does not pick up all projects in workspace 
(IVYDE-118) (thanks to Matt Goldspink)
 - FIX: Ivy editor: code completion missing for matcher attribute of conflicts 
manager (IVYDE-99)
 - FIX: The project dependencies and the errors markers are conflicting 
(IVYDE-116) 




[jira] Commented: (IVYDE-90) IvyDE does not do property value expansion

2008-09-19 Thread Will Gorman (JIRA)

[ 
https://issues.apache.org/jira/browse/IVYDE-90?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632791#action_12632791
 ] 

Will Gorman commented on IVYDE-90:
--

Hi Nicolas,  should I create another case for the scenario where the properties 
are coming from ant vs. an ivysettings file?  In our scenario, we parameterize 
from ant build.properties files which aren't explicitly referenced in the 
ivysettings.xml.

Thanks!

Will

> IvyDE does not do property value expansion
> --
>
> Key: IVYDE-90
> URL: https://issues.apache.org/jira/browse/IVYDE-90
> Project: IvyDE
>  Issue Type: Bug
>  Components: classpath container
>Affects Versions: 2.0.0.alpha1
> Environment: Eclipse 3.3.1
> MyEclipse 6.0.1
> Aptana 1.1.6
> Ivy/IvyDE plugins from xoocode
>Reporter: Michael Laccetti
>Assignee: Nicolas Lalevée
> Fix For: 2.0
>
> Attachments: IVYDE-90_patch.zip
>
>
> If I create an Ivy properties file with the variables defined in them, and 
> then reference those variables in the built script, Ivy via Ant will pick 
> them up, and inject the correct information.  However, the same does not go 
> for IvyDE; it conks out trying to retrieve 
> --${lala}.
> Sample ivy.roperties
> {noformat}
> spring.version=2.5.3
> {noformat}
> Sample ivysettings.xml
> {code:xml} 
> 
>   
> 
> {code} 
> Sample ivy.xml
> {code:xml} 
> 
>   
>   
>   
>rev="${spring.version}" />
>   
> 
> {code} 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (IVYDE-51) IvyDE doesn't set the ${basedir} property

2008-09-19 Thread JIRA

[ 
https://issues.apache.org/jira/browse/IVYDE-51?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632796#action_12632796
 ] 

Nicolas Lalevée commented on IVYDE-51:
--

This can be fixed as it was done for IVYDE-52, but should it be done in Ivy so 
that we are sure that {{basedir}} is always equals to {{ivy.basedir}} ?

> IvyDE doesn't set the ${basedir} property
> -
>
> Key: IVYDE-51
> URL: https://issues.apache.org/jira/browse/IVYDE-51
> Project: IvyDE
>  Issue Type: Improvement
>  Components: classpath container
>Affects Versions: 2.0.0.alpha1
>Reporter: Maarten Coene
>
> IvyDE doesn't specify the ${basedir} property when resolving the dependencies.
> This means that it's not possible to resolve jar files in a [project]/lib 
> directory.
> For instance, the following resolver doesn't work:
> {code}
> 
>pattern="${ivy.project.dir}/lib/[artifact](-[revision]).[ext]" />
> 
> {code}
> Maarten

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



DO NOT REPLY [Bug 45850] New: Built in properties list needs 2 updates

2008-09-19 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45850

   Summary: Built in properties list needs 2 updates
   Product: Ant
   Version: 1.7.1
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: trivial
  Priority: P2
 Component: Documentation
AssignedTo: notifications@ant.apache.org
ReportedBy: [EMAIL PROTECTED]


docs/manual/using.html#built-in-props should probably be updated with:

ant.library.dir - the ${ant.home}/lib directory
ant.core.lib - the ${ant.library.dir}/ant.jar file


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.