The important part of the coding is

            } else if (arg.equals("-buildfile") || arg.equals("-file")
                       || arg.equals("-f")) {
                try {
    -->             buildFile = new File(args[i + 1].replace('/',
File.separatorChar));
                    i++;

where you can see, all slashes are converted to platform specific separator
character.
Therefore an URL would be modified, therefore you can�t use an URL for
buildfile.

Another possibility would be via another Ant option (-builduri or so), but 
there is nothing like that in the oata.Main class.


I haven�t heard (or can�t remind) anything about providing that. But you can
try to implement that for your own. Simplest would be with a kind of local
cache
- check whether the file is local
- if not download the file to local
- start ant with the local file


For checking a download I wrote a <scriptdef> called "require". You can
see it in the posting about "auto download of antlibs" [1].


Jan


[1] http://marc.theaimsgroup.com/?l=ant-dev&m=107631178222723&w=2



> -----Original Message-----
> From: Robert Onslow [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 12, 2004 4:06 PM
> To: [EMAIL PROTECTED]
> Subject: -buildfile http://myorg.org/mydir/build.xml
> 
> 
> Hi everyone
> There was talk in the archive of being able to pick up a 
> build file from a url 
> i.e. ant -buildfile http://myorg/mydir/build.xml
> 
> Does anyone know if this came to be supported, or when it 
> might be supported.
> 
> Robert
> 
> 
> 
> 
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> 
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
> 
> www.mimesweeper.com
> **********************************************************************
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to