prezi / gradle-haxe-plugin

Gradle Haxe Plugin
Other
23 stars 4 forks source link

to support client-editor, resource path usage of client-ui macros needs to be refactored #4

Closed Schipy closed 10 years ago

Schipy commented 10 years ago

ImageAssetMacros needs resource path, which it reads form hx.properties generated by old plugin

lptr commented 10 years ago

Why not report it for client-ui/client-editor then? Is there something to do in the plugin for this?

Schipy commented 10 years ago

Yes, the generated haxe compile statement has to solve to pass in the path of the resources to macros somehow. Current plugin generates a properties file, in Haxe 3 this can be swapped by adding a -D resources=<wherever .har is extracted> to the compile statements. If the plugin supports custom compile flags for any compile tasks, and we switch to haxe 3, then this can be solved without touching the plugin (though it still may be a convenience feature). Just wanted to make a note about all this.

lptr commented 10 years ago

Macros can load resources from the classpath instead of the file system. Resource folders are on the classpath during build already.

lptr commented 10 years ago

Sorry, they aren't right now. I will put them on the classpath then.

Schipy commented 10 years ago

I think they're also needed atm to generate flash embed statements, which uses the actual path string.

lptr commented 10 years ago

Maybe we need another task to extract resources from a HAR to a local folder before the build?

lptr commented 10 years ago

Is this fixed yet? @Schipy ?

lptr commented 10 years ago

I'm gonna close this because nobody cares anymore