• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOLips/Ant: Installing {$project.name} in //Library/Frameworks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOLips/Ant: Installing {$project.name} in //Library/Frameworks


  • Subject: Re: WOLips/Ant: Installing {$project.name} in //Library/Frameworks
  • From: Gaastra Dennis - WO Lists <email@hidden>
  • Date: Thu, 6 Dec 2007 21:14:16 -0800

Hi Chuck,

So it is the best to just use "project.name" everywhere? It did seem to work now. Thanks.

With Kind Regards,

Dennis Gaastra, M.B.A.[sfu.ca], B.Sc.[ubc.ca]
Chief Technology Officer,


On 6-Dec-07, at 9:00 PM, Chuck Hill wrote:


On Dec 6, 2007, at 8:33 PM, Gaastra Dennis - WO Lists wrote:

Hi Chuck,

This one is just copied and pasted from a new "WebObjects Framework"

#Tue Dec 04 17:25:30 PST 2007
eoAdaptorClassName=
framework.name=ABC
principalClass=
classes.dir=bin
customInfoPListContent=
cfBundleShortVersion=
framework.name.lowercase=webobjectsframework
cfBundleVersion=
javaVersion=1.5+
cfBundleID=org.mywoapp

I see framework.name, I do not see project.name.


<project name="ABC" default="build" basedir=".">

<!-- main targets  -->
<!-- add optional targets to depends list if needed -->
<target name="build" depends="setProps,init.build,build.woframework" />

<target name="compileAndBuild" depends="setProps,init.build,compile,build.woframework" />

<target name="install" depends="setProps,init.install,build.woframework" />

<target name="clean" depends="setProps">
<delete dir="dist" />
</target>

<!-- property determination  -->
<target name="setProps">
<property file="${user.home}${file.separator}build.properties" />
<property file="build.properties" />
<property file="${user.home}${file.separator}Library${file.separator}wobuild.properties" />
<condition property="wo.properties.check.failed">
<not>
<and>
<isset property="wo.wosystemroot" />
<isset property="wo.wolocalroot" />
</and>
</not>
</condition>
<fail message="Could not find ${user.home}${file.separator}Library${file.separator}wobuild.properties." if="wo.properties.check.failed" />
<property name="install.dir" value="${wo.wolocalroot}/Library/Frameworks" />
</target>

<!-- basic initializations  -->
<target name="init.install">
<tstamp />
<property name="dest.dir" value="${install.dir}" />
</target>

<target name="init.build">
<tstamp />
<property name="dest.dir" value="dist" />
</target>

<!-- woproject tasks -->
<target name="build.woframework">

<taskdef name="woframework" classname="org.objectstyle.woproject.ant.WOFramework">
</taskdef>

<woframework name="${project.name}" destDir="${dest.dir}"

That looks a lot like project.name not framework.name.  :-)  Mike is in the process of cleaning this confusion up.

Chuck


customInfoPListContent="${customInfoPListContent}" principalClass="${principalClass}" eoAdaptorClassName="${eoAdaptorClassName}" javaVersion="${javaVersion}" cfbundleversion="${cfBundleVersion}" cfbundleshortversion="${cfBundleShortVersion}" cfbundleID="${cfBundleID}">
<classes dir="${classes.dir}">
<patternset>
<includesfile name="woproject/classes.include.patternset" />
<excludesfile name="woproject/classes.exclude.patternset" />
</patternset>
</classes>
<wsresources dir="WebServerResources">
<patternset>
<include name="**/*" />
<exclude name="CVS" />
<exclude name=".svn" />
<excludesfile name="woproject/wsresources.exclude.patternset" />
</patternset>
</wsresources>
<resources dir="Resources">
<patternset>
<include name="**/*" />
<exclude name="CVS" />
<exclude name=".svn" />
<excludesfile name="woproject/resources.exclude.patternset" />
</patternset>
</resources>
<resources dir="Components">
<patternset>
<include name="**/*" />
<exclude name="CVS" />
<exclude name=".svn" />
<excludesfile name="woproject/resources.exclude.patternset" />
</patternset>
</resources>
<lib dir="Libraries">
<include name="*.jar" />
<exclude name="**/*.framework/**" />
</lib>
</woframework>
</target>

<target name="compile" depends="setProps,init.build">
<taskdef name="wocompile" classname="org.objectstyle.woproject.ant.WOCompile" />
<mkdir dir="bin" />
<wocompile srcdir="Sources" destdir="bin">
<frameworks root="${wo.dir.user.home.library.frameworks}">
<patternset>
<includesfile name="woproject/ant.frameworks.user.home" />
</patternset>
</frameworks>
<frameworks root="${wo.wolocalroot}">
<patternset>
<includesfile name="woproject/ant.frameworks.wo.wolocalroot" />
</patternset>
</frameworks>
<frameworks root="${wo.wosystemroot}">
<patternset>
<includesfile name="woproject/ant.frameworks.wo.wosystemroot" />
</patternset>
</frameworks>
<classpath>
<fileset dir="${wo.wolocalroot}">
<patternset>
<includesfile name="woproject/ant.frameworks.wo.wolocalroot" />
</patternset>
</fileset>
<fileset dir="Libraries">
<filename name="**/*.jar" />
</fileset>
</classpath>
</wocompile>
</target>
</project>


With Kind Regards,

Dennis Gaastra, M.B.A.[sfu.ca], B.Sc.[ubc.ca]




On 6-Dec-07, at 8:16 PM, Chuck Hill wrote:


On Dec 6, 2007, at 6:30 PM, Gaastra Dennis - WO Lists wrote:

Hi List,

Why does the WOLips/Ant Installer install "{$project.name}" intead of "ABC.framework" into /Library/Frameworks/ ?

Because project.name is not defined.


The name is correctly defined in ".project","build.properties", and "build.xml".
Thanks for any help

Quite obviously, it is not correctly defined or the definition is not read.  build.xml and build.properties are the relevant bits.  Without knowing what is in them, we are left guessing.

Chuck

-- 

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







-- 

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: WOLips/Ant: Installing {$project.name} in //Library/Frameworks
      • From: Mike Schrag <email@hidden>
References: 
 >WOLips/Ant: Installing {$project.name} in //Library/Frameworks (From: Gaastra Dennis - WO Lists <email@hidden>)

  • Prev by Date: WOLips Versions?
  • Next by Date: Non Compulsory toOne Relationships, Propergating Primary Key
  • Previous by thread: WOLips/Ant: Installing {$project.name} in //Library/Frameworks
  • Next by thread: Re: WOLips/Ant: Installing {$project.name} in //Library/Frameworks
  • Index(es):
    • Date
    • Thread