You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Galen Boyer <ga...@hotpop.com> on 2005/02/06 00:09:17 UTC

Templates?

Are these being thought of?  I have a macro that resolves its
attributes to calls to targets.  (A very simplistic version of this
macro follows:
       
  <macrodef name="OBJECTS">
    <attribute name="objecttype"/>
    <attribute name="dmltype"/>
    <sequential>
       <antcall target="@{dmltype}-@{objecttype}"/>
    </sequential>
  </macrodef>

I have maybe ten objecttypes while 3 dmltypes.

I therefore have multitudes of targets that look like the following
(primarykey is an example of just one of objecttype).

  <!-- ######################################## -->
  <target name="drop-primarykeys" depends="init">
    <OBJECTS dmltype="drop" objecttype="PRIMARYKEY"/>
  </target>
  <target name="create-primarykeys" depends="init">
    <OBJECTS dmltype="create" objecttype="PRIMARYKEY" objectdir="${PRIMARYKEYS.dir}"/>
  </target>
  <target name="refresh-primarykeys" depends="init">
    <OBJECTS dmltype="refresh" objecttype="PRIMARYKEY" objectdir="${PRIMARYKEYS.dir}"/>
  </target>

A template of the above would simplify my ant files in a tremendous fashion.

-- 
Galen Boyer


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


Re: Templates?

Posted by Galen Boyer <ga...@hotpop.com>.
<so...@yahoo.com> writes:

> Hi Galen,
>
>        What exactly is the link to AntForms? 

Hi Rene.  I believe you think I sent you a private email?  I was
posting to the ant users list.

-- 
Galen Boyer


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


Re: Templates?

Posted by so...@yahoo.com.
Hi Galen,

       What exactly is the link to AntForms? 

René

 --- Galen Boyer <ga...@hotpop.com> a écrit : 
> Are these being thought of?  I have a macro that resolves its
> attributes to calls to targets.  (A very simplistic version of this
> macro follows:
>        
>   <macrodef name="OBJECTS">
>     <attribute name="objecttype"/>
>     <attribute name="dmltype"/>
>     <sequential>
>        <antcall target="@{dmltype}-@{objecttype}"/>
>     </sequential>
>   </macrodef>
> 
> I have maybe ten objecttypes while 3 dmltypes.
> 
> I therefore have multitudes of targets that look like the following
> (primarykey is an example of just one of objecttype).
> 
>   <!-- ######################################## -->
>   <target name="drop-primarykeys" depends="init">
>     <OBJECTS dmltype="drop" objecttype="PRIMARYKEY"/>
>   </target>
>   <target name="create-primarykeys" depends="init">
>     <OBJECTS dmltype="create" objecttype="PRIMARYKEY" objectdir="${PRIMARYKEYS.dir}"/>
>   </target>
>   <target name="refresh-primarykeys" depends="init">
>     <OBJECTS dmltype="refresh" objecttype="PRIMARYKEY" objectdir="${PRIMARYKEYS.dir}"/>
>   </target>
> 
> A template of the above would simplify my ant files in a tremendous fashion.
> 
> -- 
> Galen Boyer
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
>  


	

	
		
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/

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