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
Open

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

rklaren opened this issue Feb 13, 2013 · 3 comments

Comments

@rklaren
Copy link

@rklaren 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
Copy link
Member

@RIAstar RIAstar commented Feb 13, 2013

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

Loading

@rklaren
Copy link
Author

@rklaren 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"
}

Loading

@RIAstar
Copy link
Member

@RIAstar 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/

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants