Ticket #196 (closed enhancement: fixed)
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>
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)