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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> | |
<log4j:configuration> | |
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> | |
<param name="Target" value="System.out" /> | |
<param name="Threshold" value="DEBUG" /> | |
<layout class="org.apache.log4j.PatternLayout"> | |
<param name="ConversionPattern" | |
value="%d{ABSOLUTE} %-5p [%c{1}] %m%n" /> | |
</layout> |
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
# To be placed into <HOME_DIR>/.gradle/ directory | |
systemProp.http.proxyHost=XXXXX | |
systemProp.http.proxyPort=YYYY | |
systemProp.http.proxyUser=<USERNAME> | |
systemProp.http.proxyPassword=<PASSWORD> | |
systemProp.http.nonProxyHosts=<HOST01>,<HOST02>,... | |
systemProp.https.proxyHost=XXXXX | |
systemProp.https.proxyPort=YYYY | |
systemProp.https.proxyUser=<USERNAME> |
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
apply plugin: 'java' | |
dependencies { | |
runtime group: 'org.hibernate', name: 'hibernate-core', version: '4.3.8.Final' | |
} | |
configurations { | |
runtime.exclude group: 'xml-apis', module: 'xml-apis' | |
runtime.exclude group: 'org.hibernate.javax.persistence', module: 'hibernate-jpa-2.1-api' | |
} |
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 org.amicofragile.etude.compiling; | |
import java.io.File; | |
import java.io.FileWriter; | |
import java.net.URL; | |
import java.net.URLClassLoader; | |
import javax.tools.JavaCompiler; | |
import javax.tools.ToolProvider; |
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
logger.debug("${cursor}: {}", ${line_selection}); |
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
private static final Logger logger = LoggerFactory.getLogger(${enclosing_type}.class); | |
${:import(org.slf4j.Logger,org.slf4j.LoggerFactory)} |
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 | |
mvn clean package source:jar javadoc:jar |
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
mvn scm-publish:publish-scm -Dscmpublish.content=target/site/ -Dscmpublish.username=pietrom -Dscmpublish.skipCheckin=true |
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 | |
groupId=$1 | |
artifactId=$2 | |
version=$3 | |
repo=$4 | |
mvn org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file -Durl=$repo -DgroupId=$groupId -DartifactId=$artifactId -Dversion=$version -Dfile=target/$artifactId-$version.jar -Djavadoc=target/$artifactId-$version-javadoc.jar -Dsources=target/$artifactId-$version-sources.jar -Dpackaging=jar -DpomFile=pom.xml |
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
git svn clone --authors-file=path/to/authors/file SVN_REPO_URL GIT_LOCAL_REPO [--tags=TAGS-ROOT] [--trunk=TRUNK-ROOT] --no-minimize-url [--username=SVN_USERNAME] |