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

Dear List,

I think we do you the wonder-style, as instructed in Pascal's script.

No, that is the old style.


All pattern sets have not been modified, except for "resources.include.patternset", we added "/Fonts/**"

Here is a copy of the build.xml


<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="${framework.name}.framework"/>
        </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="."/>
        </target>

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

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

                <woframework name="${framework.name}" destDir="${dest.dir}"
                                                        
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=".">
                        <patternset>
                                        <includesfile 
name="woproject/wsresources.include.patternset"/>
                                        <excludesfile 
name="woproject/wsresources.exclude.patternset"/>
                                </patternset>
                        </wsresources>

As a quick hack, replace this:

                        <resources dir=".">
                        <patternset>
                                        <includesfile 
name="woproject/resources.include.patternset"/>
                                        <excludesfile 
name="woproject/resources.exclude.patternset"/>
                                </patternset>
                </resources>

with this

                        <resources dir="Resources">
                        <patternset>
                                        <include name="**/*"/>
                                        <exclude name="CVS"/>
                                        <exclude name=".svn"/>
                                        <excludesfile 
name="woproject/resources.exclude.patternset"/>
                                </patternset>
                </resources>

Does that work?


Chuck
                        <resources dir=".">
                        <patternset>
                                        <includesfile 
name="woproject/resources.include.patternset"/>
                                        <excludesfile 
name="woproject/resources.exclude.patternset"/>
                                </patternset>
                </resources>
                        <resources dir="Resources/Fonts">
                        <patternset>
                                        <includesfile 
name="woproject/resources.include.patternset"/>
                                        <excludesfile 
name="woproject/resources.exclude.patternset"/>
                                </patternset>
                </resources>
                        <lib dir=".">
                                <include name="*.jar"/>
                                <exclude name="**/*.framework/**"/>
                        </lib>
                </woframework>
        </target>

        <!-- optional targets -->
        <!-- copy strings files -->
        <target name="copy.strings">
                 <copy 
todir="${dest.dir}/${framework.name}.framework/Resources">
                <fileset dir="." casesensitive="yes">
                                <include name="*.strings"/>
                                <include name="**/*.strings"/>
                        </fileset>
                        <mapper type="flatten"/>
                </copy>
        </target>

  <target name = "compile" depends = "setProps,init.build" >
    <mkdir dir = "bin"/>
    <javac srcdir = "src" destdir = "bin">
      <classpath>
<fileset dir="${wo.dir.user.home.library.frameworks}" includesfile = "woproject/ant.frameworks.user.home">
          <include name = "**/*.jar"/>
        </fileset>
<fileset dir="${wo.wolocalroot}" includesfile = "woproject/ ant.frameworks.wo.wolocalroot">
          <include name = "**/*.jar"/>
        </fileset>
<fileset dir="${wo.wosystemroot}" includesfile = "woproject/ ant.frameworks.wo.wosystemroot">
          <include name = "**/*.jar"/>
        </fileset>
      </classpath>
    </javac>
  </target>
</project>




With Kind Regards,

Dennis Gaastra



On 5-Dec-07, at 6:08 PM, Chuck Hill wrote:


On Dec 5, 2007, at 5:58 PM, Gaastra Dennis - WO Lists wrote:

Dear List,

After 6 hours, still no result. Why can't it just work like with XCode???

It does, if you use the Wonder style projects.


1. The "Resources" folder has no R, but the Fonts folder does.
2. Added <resources dir="Resources/Fonts">...</resources> to build.xml.
3. In the "build" subdirectory, everything is fine.
4. The installed framework now has no Fonts directory at all....

Please help; We thought Eclipse was supposed to be so good?

I tried to help. I asked to see the woframework from your build.xml. Your response did not include it. It would also help to see woproject/resources.include.patternset and woproject/ resources.exclude.patternset

Otherwise, am just guessing as what you have. And I don't feel like guessing.

All we need is to have: /Library/Frameworks/ABC.framework/ Resources/Fonts with all the fonts. Why is this so impossible?

It works just fine for me.

Chuck


On 5-Dec-07, at 4:10 PM, Andrew Lindesay wrote:

Hello Dennis;

I had the same problem and added a section for each bunch of resources so they end up flattened;

<resources dir="Resources/graphics">
<patternset>
  <includesfile name="woproject/resources.include.patternset" />
  <excludesfile name="woproject/resources.exclude.patternset" />
</patternset>
</resources>

<resources dir="Resources/misc">
<patternset>
  <includesfile name="woproject/resources.include.patternset" />
  <excludesfile name="woproject/resources.exclude.patternset" />
</patternset>
</resources>


cheers.

Yes, we used the import script from Pascal with the Wonder templates. Everything else seemed to work OK, except for the Resources: somehow, they would always end up within WebServerResources, and not the top-level one.
...
Or he had not used the Wonder version and is getting the flattening effect of the standard build (which I will try to not say nasty things about no matter how much it might deserve it as I have no time to fix it).

___
Andrew Lindesay
www.lindesay.co.nz




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (Webobjects- [EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/chill% 40global-village.net

This email sent to [EMAIL PROTECTED]


--

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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to