Ticket #196 (closed enhancement: fixed)

Opened 20 years ago

Last modified 19 years ago

Application Template Build File - add project name

Reported by: simeon Owned by: joe.rinehart
Priority: normal Milestone: 2.0 Beta 2
Version: 2.0.304 Severity: normal
Keywords: Cc:

Description

In my local ant file for creating new unity applications, I have added a property called "appname" this allows me to set it, and then in addition to setting all the properties on export, it also creates a folder for the new application with the correct name.

<project name="New Model-Glue Application" default="build" basedir="..">

<property name="appname" value="admin" /> <property name="source" value="${basedir}\modelglueapplicationtemplate"/> <property name="target" value="${basedir}\${appname}"/>

<target name="build">

<copy todir="${target}">

<fileset dir="${source}" />

</copy>

<replace

dir="${target}" token="modelglueapplicationtemplate" value="${appname}"

/>

</target>

</project>

Change History

Changed 19 years ago by joe.rinehart

  • owner changed from somebody to joe.rinehart
  • status changed from new to assigned
  • version set to 2.0
  • milestone set to Release Public Beta 2

Changed 19 years ago by joe.rinehart

  • status changed from assigned to closed
  • resolution set to wontfix

Hey Sim,

When I do this, Ant (via CFEclipse) interprets the vars in target as literals, looking for a dir named "${basedir}/${target}" - I'm sure it works for many others, but I'm going to have to stick to as-is to save myself from other people in my unfortunate situation.

Changed 19 years ago by joe.rinehart

  • status changed from closed to reopened
  • resolution wontfix deleted

NM. I am a moron. Fixing now.

Changed 19 years ago by joe.rinehart

  • status changed from reopened to closed
  • resolution set to fixed

(In [251]) Fixes #196

Note: See TracTickets for help on using tickets.