ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: using build.xml snippets
Date Sat, 19 Jul 2003 04:01:57 GMT
Never tried that, but I doubt you can do that.  Why not use a path relative 
to your build, or are you trying to use many different paths with different 
implementations of certain named targets depending on how you want to build 
things?

Jake

At 11:17 AM 7/18/2003 -0700, you wrote:
>Hi
>Can i use a variable instead of "/home/dhoover/" in the below example like 
>for example
><!ENTITY taskdefs SYSTEM "file:%%WORKAREA%%/taskdefs.ent"> ?
>If so how can i suppply the values for the variable %%WORKAREA%%?
>Thanks in advance.
>Kumar
>
>
>Sebastien Blanc wrote:
>
>>remove the 'XML' before DOCTYPE,
>>this is an unhappy copy-paste.
>>seb.
>>
>>"Dean A. Hoover" wrote:
>>
>>
>>
>>>Thanks. I am using apache-ant-1.6alpha. I attempted to follow your
>>>advice as follows:
>>>
>>>==== build.xml ====
>>><?xml version="1.0"?>
>>>XML <!DOCTYPE project [
>>>  <!ENTITY taskdefs SYSTEM "file:/home/dhoover/taskdefs.ent">
>>>  ]>
>>><project name="fermata" basedir="." default="build">
>>>&taskdefs;
>>>    <target name="init">
>>>...
>>></project>
>>>=== taskdefs.ent ===
>>>       <taskdef name="deploy"
>>>classname="org.apache.catalina.ant.DeployTask"/>
>>>        <taskdef name="install"
>>>classname="org.apache.catalina.ant.InstallTask"/>
>>>        <taskdef name="list" classname="org.apache.catalina.ant.ListTask"/>
>>>        <taskdef name="reload"
>>>classname="org.apache.catalina.ant.ReloadTask"/>
>>>        <taskdef name="remove"
>>>classname="org.apache.catalina.ant.RemoveTask"/>
>>>        <taskdef name="resources"
>>>classname="org.apache.catalina.ant.ResourcesTask"/>
>>>        <taskdef name="roles"
>>>classname="org.apache.catalina.ant.RolesTask"/>
>>>        <taskdef name="start"
>>>classname="org.apache.catalina.ant.StartTask"/>
>>>        <taskdef name="stop" classname="org.apache.catalina.ant.StopTask"/>
>>>        <taskdef name="undeploy"
>>>classname="org.apache.catalina.ant.UndeployTask"/>
>>>
>>>When I run ant I get:
>>>
>>>Buildfile: build.xml
>>>
>>>BUILD FAILED
>>>/home/dhoover/DEVEL/migrasponder/web/vendor/build.xml:2: Content is not
>>>allowed in prolog.
>>>
>>>Total time: 0 seconds
>>>
>>>Did I misunderstand?
>>>
>>>Dean
>>>
>>>Sebastien Blanc wrote:
>>>
>>>
>>>
>>>>Hi !
>>>>
>>>>if u're talking about XML build inclusion, u can use the following:
>>>>
>>>>XML <!DOCTYPE project [
>>>><!ENTITY builddefs SYSTEM "file:../../build/builddefs.xml">
>>>>]>
>>>>
>>>><project name="AMC logging" default="main">
>>>>
>>>><property name="component.name" value="amc"/>
>>>><target name="main" depends="jar"/>
>>>>
>>>>&builddefs;
>>>>
>>>>this is extensible to as much XML files as u wish; also I think ANT 1.6
>>>>is supposed to have an <import> task.
>>>>
>>>>seb.
>>>>
>>>>"Dean A. Hoover" wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>Suppose I want to "include" files in a build.xml file. How do
>>>>>I do it?
>>>>>
>>>>>Dean Hoover
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>>>>For additional commands, e-mail: user-help@ant.apache.org
>>>>>
>>>>>
>>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>>>For additional commands, e-mail: user-help@ant.apache.org
>>>>
>>>>
>>>>
>>>>
>>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>>For additional commands, e-mail: user-help@ant.apache.org
>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>>
>>
>


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


Mime
View raw message