[gradle-user] su - USERNAME bash -c from Gradle/Groovy execute() results in error = bash: -c: line 0: unexpected EOF while looking for matching `'

2011-07-02 Thread marcellodesales
I'm trying to automate a server bootstrap for different users the following from a Gradle: The following command is executed by Root once the OS is installed and managed by each user: su - $username bash -c svn checkout http://programming-artifacts.googlecode.com/svn/trunk/

[gradle-user] Re: su - USERNAME bash -c from Gradle/Groovy execute() results in error = bash: -c: line 0: unexpected EOF while looking for matching `'

2011-07-02 Thread marcellodesales
Merlyn, You made my Saturday a better day... Thanks man!!! I had read about that, but did not try... I got a better view of it with tokenize() and to better maintain the commands separate... Trying to make this more intuitive for users (who will eventually maintain a VERY large build system for

[gradle-user] Re: su - USERNAME bash -c from Gradle/Groovy execute() results in error = bash: -c: line 0: unexpected EOF while looking for matching `'

2011-07-02 Thread marcellodesales
Hi Rene, Yes, bash complains about the structure of the command... I tried so many variations until I found the explanation: You are getting that error because you are telling bash to interpret /usr/bin/svn. Since /usr/bin/svn is a binary file and not a bash script, bash is giving you that

[gradle-user] Javac + Java Annotation Processor + Maven classpath dependencies in Gradle...

2011-07-23 Thread marcellodesales
Hello all, I must say I'm hooked with Gradle and I was finally saved from the XML hell from ANT + Maven... :) 15 lines of code to generate a Jar, push the library to my internal nexus Maven repository... Impressed Thanks guys Now I'm trying to migrate the following command-line shell

[gradle-user] Re: Javac + Java Annotation Processor + Maven classpath dependencies in Gradle...

2011-07-23 Thread marcellodesales
Hi Marlyn, Taking your question literally you'll need to pass your compile classpath to ant.javac. Wouldn't there be any magical Maven dependency way to do that? I could use the user's .m2 cache path, but I wanted gradle/maven to take care of it for me... :) I'd like to lead you in a

[gradle-user] Re: Javac + Java Annotation Processor + Maven classpath dependencies in Gradle...

2011-07-24 Thread marcellodesales
After a few more attempts, I passed from the sourceSets block... The only way I could get it working was by adding the main block before the jpa one... So, I went to the annotations project where I first used the sourceSets and added the jpa block... Guess what? It worked over there... But, the

[gradle-user] Re: Javac + Java Annotation Processor + Maven classpath dependencies in Gradle...

2011-07-25 Thread marcellodesales
Hey Merlyn, Just to keep it documented, I got it working!!! Man, Gradle is awesome! thanks a lot for your help... Here's the complete code for processing Java 6 Annotations with Javac compiler flags + dependencies expressed in Maven... Is this a bug? // The definition of jpa sourceSet WILL ONLY

[gradle-user] Re: Javac + Java Annotation Processor + Maven classpath dependencies in Gradle...

2011-07-26 Thread marcellodesales
Szczepan Faber wrote: We'll try :) What tasks did you miss examples most? Where do learn about tasks, from the user guide or the DSL reference? From the tutorial and each individual documentation, we can get the idea of the DSLs... But the concept of extensions of those concepts are still

[gradle-user] Re: cache changes in 1.0-milestone-4

2011-08-01 Thread marcellodesales
I also prefer a predictable directory structure over a generated one... I see I could play with Maven dependencies and do gradle install to get the jars from .m2, but I don't know if 2 different places are really necessary... While I'm in the middle of migrating ANT build.xml and Maven pom.xml to

[gradle-user] Multiple Upload Archives: Maven + Jar in File system dir

2011-08-06 Thread marcellodesales
I have been trying to get the same JAR uploaded to maven in another file system directory... I have tried the following uploadArchives { repositories.mavenDeployer { name = 'sshDeployer' // optional configuration = configurations.deployerJars repository(url:

[gradle-user] Re: Jar on filesystem repository updated, but Gradle cache not updated...

2011-08-19 Thread marcellodesales
I have the same problem described here: http://www.genmaint.com/in-gradle-how-do-ignore-the-cache-for-a-local-ivy-repository.html Gradle M3 still ignores the useOrigin = true... Please let me know if you guys have another solution... -- View this message in context:

[gradle-user] Re: Jar on filesystem repository updated, but Gradle cache not updated...

2011-08-21 Thread marcellodesales
I could get this done removing the cache manually each time I compile... It does not work even with the useOrigin = true.. // Defining the thirdparty directory as a repository with the directory structure patterns used. def thirdpartyDir = new File($projectDir/../thirdparty).getCanonicalPath()

[gradle-user] Re: Jar on filesystem repository updated, but Gradle cache not updated...

2011-08-21 Thread marcellodesales
Hi Adam, I have to commit my partial work to version control, but I'm constantly refactoring what I have done in previous releases of Gradle!!! :) I will definitely upgrade if ALL the m4 bugs are fixed!!! :D thanks Marcello -- View this message in context:

[gradle-user] Is it possible to execute imported tasks Verbose from Gradle?

2011-10-18 Thread marcellodesales
Hi all, I have 3 long-running tasks imported (oahu-jar, client-sdk, common) from an ANT script as shown below: These ANT tasks have rich output in the stdout when they are executed. However, the output of all of them are somehow suppressed when executed from Gradle... Is there a way to get

[gradle-user] Re: Is it possible to execute imported ANT tasks in a more verbose mode from Gradle?

2011-10-18 Thread marcellodesales
Hi TheKaptain, The flags -i and -d are logging leves for Gradle, not for the imported ANT tasks... I'm looking for the output of the imported tasks, as they output stuff the the stdout... The switch -i printed information about the build script: I was trying to use execute() as the execution

[gradle-user] Re: Multiple Upload Archives: Maven + Jar in File system dir

2011-10-26 Thread marcellodesales
Hi Vsajja, I tried it again today... The correct way I got it to work in a custom task was: I was hoping to get ONLY the jar copied to the file system, but it actually creates a local Maven repository, which is what is defined. I just created a custom task for this purpose. -- View this

[gradle-user] Re: Publishing to Github?

2012-05-14 Thread marcellodesales
Hi guys, Here's something similar I was working on before... http://marcellodesales.wordpress.com/2012/04/24/managing-and-building-version-controlled-maven-repos-using-git-gradle-and-nexus-server/ Thanks Marcello -- View this message in context: