ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peterrei...@apache.org>
Subject Re: cvs commit: ant/src/main/org/apache/tools/ant/helper ProjectHelper2.java
Date Tue, 26 Apr 2005 15:03:59 GMT
For imports, the base dir is the initial build file.

The import task uses files for other things, for example
to import a new file,
however I think that it may be usefull to allow people
to play with urls - (it will need to be done at some stage)
so taking away the check would I think be good.

Peter

Dominique Devienne wrote:

>>From: peterreilly@apache.org [mailto:peterreilly@apache.org]
>>  allow url'ed source's to be used as build files
>>
>>  --- ProjectHelper2.java	25 Apr 2005 10:15:11 -0000	1.53
>>  +++ ProjectHelper2.java	26 Apr 2005 11:55:18 -0000	1.54
>>  @@ -168,12 +168,6 @@
>>               buildFileName = buildFile.toString();
>>   //         } else if (source instanceof InputStream ) {
>>           } else if (source instanceof URL) {
>>  -            if (handler.getCurrentAntHandler() != elementHandler) {
>>  -                throw new BuildException(
>>  -                    "Source " + source.getClass().getName()
>>  -                    + " not supported by this plugin for "
>>  -                    + " non task xml");
>>  -            }
>>               url = (URL) source;
>>               buildFileName = url.toString();
>>   //         } else if (source instanceof InputSource ) {
>>    
>>
>
>I don't fully recall the debate about this, but did we agree that we
>wanted to support URLs as build file sources last time we discussed
>this? Is this usable from a build file? How is the 'basedir' set when
>using a URL? --DD
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
>For additional commands, e-mail: dev-help@ant.apache.org
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message