This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir /root/startscript | |
echo 'Iniciando script' >> /root/startscript/init.log | |
#atualiza yum | |
yum -y update > /root/startscript/yum-update.log | |
echo 'Atualizou YUM' >> /root/startscript/init.log | |
#instala tomcat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blanq01:simbo blanq01$ grails run-app --non-interactive | |
Welcome to Grails 1.3.7 - http://grails.org/ | |
Licensed under Apache Standard License 2.0 | |
Grails home is set to: /Users/blanq01/java/grails-1.3.7 | |
Base Directory: /Users/blanq01/Projetos/simbo-workspace/simbo | |
Resolving dependencies... | |
Dependencies resolved in 5101ms. | |
Running script /Users/blanq01/java/grails-1.3.7/scripts/RunApp.groovy | |
Environment set to development |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def boleto = new BoletoBuilder() | |
boleto.build(100.00, "itau") { | |
datas { | |
vencimento xxx | |
documento xxx | |
processamento xxx | |
} | |
cedente { | |
nome xxx | |
agencia xxx, x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sun.net.www.protocol.s3; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.net.URL; | |
import java.net.URLConnection; | |
import java.net.URLStreamHandler; | |
import org.jets3t.service.ServiceException; | |
import org.jets3t.service.impl.rest.httpclient.RestS3Service; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tests PASSED - view reports in target/test-reports | |
java.util.zip.ZipException: error in opening zip file | |
at java.util.zip.ZipFile.open(Native Method) | |
at java.util.zip.ZipFile.<init>(ZipFile.java:114) | |
at java.util.zip.ZipFile.<init>(ZipFile.java:131) | |
at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:1028) | |
at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.findNextResource(AntClassLoader.java:147) | |
at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.<init>(AntClassLoader.java:109) | |
at org.apache.tools.ant.AntClassLoader.findResources(AntClassLoader.java:975) | |
at java.lang.ClassLoader.getResources(ClassLoader.java:1041) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blanq01:platimob blanq01$ grails test-app -coverage -xml | |
Welcome to Grails 1.3.6 - http://grails.org/ | |
Licensed under Apache Standard License 2.0 | |
Grails home is set to: /Users/blanq01/java/grails-1.3.6 | |
Base Directory: /Users/blanq01/Projetos/platimob | |
Resolving dependencies... | |
Dependencies resolved in 4240ms. | |
Running script /Users/blanq01/java/grails-1.3.6/scripts/TestApp.groovy | |
Environment set to test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Integer.metaClass.propertyMissing = { name -> | |
if (name == "day" || name == "days") { | |
return delegate | |
} else if (name == "month" || name == "months") { | |
return delegate * 30 | |
} else if (name == "year" || name == "years") { | |
return delegate * 30 * 12 | |
} else { | |
throw new MissingPropertyException(delegate) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//String - crypt() | |
String.metaClass.crypt = { -> | |
return org.apache.commons.codec.digest.DigestUtils.md5Hex(delegate) | |
} | |
//String - isNumeric | |
String.metaClass.isNumeric = { -> | |
return org.apache.commons.lang.StringUtils.isNumeric(delegate) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello all, | |
I'm pleased to announce the AWS Grails Plugin, version 1.1.4.1. | |
Just clarifying, we were in version 0.2, and decided to follow a versioning number strategy that some grails | |
plugin are using, to follow the 'bundled lib'. So, as AWS Java SDK is on 1.1.4, and this is the first version | |
of the plugin using it, we're now at 1.1.4.1. | |
This version fix some bugs, and a bunch of new features, including SES (Simple E-mail Service) integration. | |
On S3 handling, you can now generate torrent URLs for your s3 hosted files just using the .torrent() method, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
air:[project] lucastex$ grails stats | |
Welcome to Grails 1.3.6 - http://grails.org/ | |
Licensed under Apache Standard License 2.0 | |
Grails home is set to: /Users/lucastex/java/grails-1.3.6 | |
Base Directory: /Users/lucastex/workspaces/[project] | |
Resolving dependencies... | |
Dependencies resolved in 27ms. | |
Running script /Users/lucastex/java/grails-1.3.6/scripts/Stats.groovy | |
Environment set to development |