generation of fluid zip file name

View: New views
2 Messages — Rating Filter:   Alert me  

generation of fluid zip file name

by Laurel Williams :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everyone.

I've been wondering about the infusion ZIP file that is created by the
ant build script.

At the moment it is "hard coded" that the file name is "infusion-" +
fluid version + "-src.zip"  for the source bundle, or
"infusion-" + fluid version + ".zip" for the minified bundle. See lines
34, 123 and 128 in the build.xml file to confirm this.

I'm concerned about this, in that I also have to follow this convention
in the Infusion Builder. So, if for some reason we decide to change this
convention in the build.xml, then we will need to remember to
change this in the Infusion Builder too.

Is there a way that both utilities can get the full zip filename from
somewhere, or that I can obtain the filename from the ant script?
Perhaps we can create a simple ant task to return the generated
filename. What do you think?

Laurel

[laurel_williams.vcf]

begin:vcard
fn:Laurel A. Williams
n:Williams;Laurel
org:Faculty of Information, University of Toronto;Adaptive Technology Resource Centre (ATRC)
email;internet:laurel.williams@...
title:Accessibility Software Designer
x-mozilla-html:TRUE
version:2.1
end:vcard



_______________________________________________________
fluid-work mailing list - fluid-work@...
To unsubscribe, change settings or access archives,
see http://fluidproject.org/mailman/listinfo/fluid-work

Re: generation of fluid zip file name

by Colin Clark-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Laurel,

On 30-Oct-09, at 12:31 PM, Laurel A. Williams wrote:

> At the moment it is "hard coded" that the file name is "infusion-" +  
> fluid version + "-src.zip"  for the source bundle, or
> "infusion-" + fluid version + ".zip" for the minified bundle. See  
> lines 34, 123 and 128 in the build.xml file to confirm this.
>
> I'm concerned about this, in that I also have to follow this  
> convention in the Infusion Builder. So, if for some reason we decide  
> to change this convention in the build.xml, then we will need to  
> remember to
> change this in the Infusion Builder too.
>
> Is there a way that both utilities can get the full zip filename  
> from somewhere, or that I can obtain the filename from the ant  
> script? Perhaps we can create a simple ant task to return the  
> generated filename. What do you think?

I see your point about the hard baked-ness of these filenames, but I  
think this is probably not a huge priority for us right now. In our  
quest to get Builder to release, we've got bigger fish to fry.

In the meantime, our Builder PHP code should load the fluid_version  
property out of build.properties and build up the source and minified  
file names using the same procedure as the Ant build. That way we  
won't have bother with asking deployers to update the SRC_FILE_NAME  
and MIN_FILE_NAME in config.php.

Down the road, we can consider whether or not we even need to make any  
assumptions in the Builder about the file names of our Infusion  
builds. My guess is that with a bit of refactoring, we probably won't  
have to know the file name at all.

Colin

---
Colin Clark
Technical Lead, Fluid Project
http://fluidproject.org

_______________________________________________________
fluid-work mailing list - fluid-work@...
To unsubscribe, change settings or access archives,
see http://fluidproject.org/mailman/listinfo/fluid-work