TerrenceRyan.com

I'm a 35 year old redhead geek from Philly.
I'm currently a Developer Evangelist for Adobe.
Also the author of Driving Technical Change

ColdFusion Builder Extension Won’t Install But Will Import

3 Comments

I've run into this problem quite a bit, and it came up on a post about Ray Camden's ORM Scanner.

So the conditions are:

Two subtle pieces of information that don't always get reported:

This particular problem doesn't appear if:

The cause of your woes:

.DS_Store files.

I'm not entirely sure why.

To combat this I build all of my extensions with ANT. (I know we provide a packager, but the work flow doesn't work for me.) Here're the relevant ANT targets:

 

<target name="build.copy.files" description="Create a installable version of the source code.">
<echo message="Copying Files to Build Location"/>
<copy todir="${build.dir}" preservelastmodified="true">
<fileset dir="${dev.dir}">
<exclude name='settings.xml'/>
<exclude name='settings.properties'/>
<exclude name='.project'/>
<exclude name='.settings'/>
<exclude name='build.xml'/>
<exclude name='**/.DS_Store'/>
</fileset>
</copy>
</target>

<target name="build.zip" description="Creates a zip file of the build.">
<echo message="Creating Zip File"/>
<zip destfile="${package.dir}/${app.name}.zip" basedir="${build.dir}"/>
</target>

3 responses so far ↓

  • 1 Raymond Camden

    Actually the problem is simpler than that. When I made the zip, I zipped up the entire folder. So the zip was a zip of the folder. CFB insists that you create a zip from the contents. So in my (bad) zip,the top level content was the folder. In a proper extension package, the top level is the XML and handler subdirectories.
  • 2 tpryan

    Oh then nevermind... Ignore that Ray Camden nonsense, he has it under control. But, this is all still true.
  • 3 Raymond Camden

    Heh, yeah. This is one of those little "nit picky" details I'm going to try to make clear at my SOTR preso. Building extensions is easy... in general. Just got a few things to watch out for. (As you already know. :)

Leave a Comment









Categories

Monthly Archives

Tag Cloud

coldfusion web development flex coldfusion builder appearances squidhead coldfusion builder extensions higher ed flash builder air mobile android adobe apptacular html5 driving technical change running a coldfusion shop adobemax06 movable type flash catalyst flash blackberry adobemax07 adobemax08 hero finicky css adobemax09 holy crap i’m a mobile developer centaur basecamp cfc unfuddle motorola metablog irrational characters ios git evangelism devices code reviews ant wharton subversion security phonegap philly philadelphia multidevice knowledge@wharton jobs browserlab adobemax10 adobe tv unfuddlecfc svnauth.cfc semantic html semantic html responsive web design qnx nlb linux jquery mobile java it github flexorg fireworks edge eclipse dreamweaver apps apple adobemax11