Skip to content
This repository has been archived by the owner on May 19, 2019. It is now read-only.

implement a JRubyJar task #47

Merged
merged 2 commits into from
May 18, 2015
Merged

implement a JRubyJar task #47

merged 2 commits into from
May 18, 2015

Conversation

mkristian
Copy link
Contributor

No description provided.

import org.gradle.api.execution.TaskExecutionGraph
import org.gradle.api.tasks.TaskState
import org.gradle.api.tasks.bundling.Zip
//import org.gradle.jvm.tasks.Jar
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try org.gradle.api.tasks.bundling.Jar

include script.name
rename { 'jar-bootstrap.rb' }
void initScript(final Object scriptName) {
if (this.scriptName != null) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure about this:

  • Preventing the user from setting the scriptName twice is not very gradlesque (there are reasons for having to do this in complex builds).
  • I think the evaluation is happening too early. the conversion should probably only happen when the task is executed.

I might actually be quite wrong in this case - I need to play with this code change first

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants