Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It's not possible to add multiple compileFlex tasks to one project #80

Open
rklaren opened this Issue Feb 13, 2013 · 3 comments

Comments

Projects
None yet
2 participants
@rklaren
Copy link

rklaren commented Feb 13, 2013

Unless I missed something, it's not possible to add multiple compileFlex tasks to one project?

Our usecase is that we build our production .swf and another .swf for integration testing with RIATest, this step adds another dependency on an agent that is used by the test framework. Currently it seems I have to move this to another directory to build the file for the integration tests.

@RIAstar

This comment has been minimized.

Copy link
Member

RIAstar commented Feb 13, 2013

We've been discussing something similar in #77
Is that what you're after?

@rklaren

This comment has been minimized.

Copy link
Author

rklaren commented Feb 14, 2013

I guess it's in the same direction, I like the extra configuraton, but I'd also like to add my own. It would be cool if gradlefx would feel more like the default java plugin.

e.g. I'd like to do stuff like:

configuration {
    integrationTest.extendsFrom internal
}

dependencies {
    internal 'org:resthttpservice:1.0@swc'
    integrationTest 'com.riatest:riatestagent:3.7.0@swc'
}

// default compileFlex would compile production version
compileFlex {
   output = "prod-${project.version}.swf"
}

// somehow link the integrationTest dependencies to this task, by name convention
task integrationTestCompile( type: org.gradlefx.tasks.compile.Compile ) {
   output = "integrationtest-${project.version}.swf"
}
@RIAstar

This comment has been minimized.

Copy link
Member

RIAstar commented May 2, 2013

I've just written a blog post that describes a decent workaround for this issue:
http://blog.riastar.net/2013/03/28/gradlefx-multiple-configurations/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.