Adding code to compileFlex task

Pavel Bernshtam's Avatar

Pavel Bernshtam

10 Feb, 2013 09:17 AM

Hi, I'm trying to add code obfuscation to the build.

In order to do this I try

compileFlex.doFirst{
    println "compile BEFORE"
}

and

compileFlex<<{
    println "compile AFTER"
}

But both are not working.

The same approach works well for the "clean" task.

What I'm doing wrong?

Thank you

  1. Support Staff 1 Posted by Yennick Trevels on 12 Feb, 2013 07:43 AM

    Yennick Trevels's Avatar

    Can you try to log a message with "logger.error 'my message'" and see if your message appears (just for testing purposes)? Maybe this has something to do with how the standard output is handled since on of our latest versions.

  2. 2 Posted by Pavel Bernshtam on 12 Feb, 2013 08:59 AM

    Pavel Bernshtam's Avatar

    Yennick: you are right, logger.error shows the message

  3. Support Staff 3 Posted by Yennick Trevels on 17 Feb, 2013 09:39 AM

    Yennick Trevels's Avatar

    I created an issue for this which you can find here: https://github.com/GradleFx/GradleFx/issues/86

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac