Commit 515d46a43b932e4aac00ea57832668cecdc5406a

Authored by Diego Ceccarelli
0 parents

init

logback.xml 0 → 100644
  1 +++ a/logback.xml
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +
  3 +<!-- For assistance related to logback-translator or configuration -->
  4 +<!-- files in general, please contact the logback user mailing list -->
  5 +<!-- at http://www.qos.ch/mailman/listinfo/logback-user -->
  6 +<!-- -->
  7 +<!-- For professional support please see -->
  8 +<!-- http://www.qos.ch/shop/products/professionalSupport -->
  9 +<!-- -->
  10 +<configuration>
  11 + <appender name="A1" class="ch.qos.logback.core.ConsoleAppender">
  12 + <encoder>
  13 + <pattern>%date %-4r [%t] %-5p %c - %m%n</pattern>
  14 + </encoder>
  15 + </appender>
  16 +
  17 +
  18 + <root level="${log:-INFO}">
  19 + <appender-ref ref="A1" />
  20 + </root>
  21 +
  22 +
  23 +
  24 + <logger name="it.cnr.isti.hpc.property.ProjectProperties" level="ERROR" />
  25 +
  26 +
  27 +
  28 +
  29 +
  30 +</configuration>
... ...
pom.xml 0 → 100644
  1 +++ a/pom.xml
  1 +<?xml version="1.0"?>
  2 +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3 + <modelVersion>4.0.0</modelVersion>
  4 + <groupId>it.cnr.isti.hpc</groupId>
  5 + <artifactId>dexter-book</artifactId>
  6 + <version>0.0.1-SNAPSHOT</version>
  7 + <properties>
  8 + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  9 + </properties>
  10 + <packaging>jar</packaging>
  11 + <name>dexter-book</name>
  12 + <url>http://hpc.isti.cnr.it</url>
  13 + <dependencies>
  14 + <dependency>
  15 + <groupId>junit</groupId>
  16 + <artifactId>junit</artifactId>
  17 + <version>4.11</version>
  18 + </dependency>
  19 + <dependency>
  20 + <groupId>it.cnr.isti.hpc</groupId>
  21 + <artifactId>hpc-utils</artifactId>
  22 + <version>0.0.6</version>
  23 + </dependency>
  24 + </dependencies>
  25 + <build>
  26 + <plugins>
  27 + <plugin>
  28 + <groupId>org.apache.maven.plugins</groupId>
  29 + <artifactId>maven-compiler-plugin</artifactId>
  30 + <version>2.3.2</version>
  31 + <configuration>
  32 + <source>1.5</source>
  33 + <target>1.5</target>
  34 + </configuration>
  35 + </plugin>
  36 + <plugin>
  37 + <artifactId>maven-assembly-plugin</artifactId>
  38 + <configuration>
  39 + <descriptorRefs>
  40 + <descriptorRef>jar-with-dependencies</descriptorRef>
  41 + </descriptorRefs>
  42 + </configuration>
  43 + </plugin>
  44 + </plugins>
  45 + </build>
  46 + <repositories>
  47 + <repository>
  48 + <id>dropbox</id>
  49 + <url>https://dl.dropboxusercontent.com/u/4663256/mvn-repository/</url>
  50 + </repository>
  51 + </repositories>
  52 +</project>
... ...
scripts/config.sh 0 → 100644
  1 +++ a/scripts/config.sh
  1 +#!/usr/bin/env bash
  2 +
  3 +VERSION="0.0.1-SNAPSHOT"
  4 +XMX="-Xmx2000m"
  5 +LOG=INFO
  6 +##LOG=DEBUG
  7 +LOGAT=1000
  8 +E_BADARGS=65
  9 +JAVA="java $XMX -Dlogat=$LOGAT -Dlog=$LOG -cp .:./target/FIXME"
  10 +CLI=it.cnr.isti.hpc.FIXME
  11 +
  12 +export LC_ALL=C
... ...
scripts/example.sh 0 → 100644
  1 +++ a/scripts/example.sh
  1 +#!/usr/bin/env bash
  2 +source ./scripts/config.sh
  3 +
  4 +EXPECTED_ARGS=2
  5 +
  6 +if [ $# -ne $EXPECTED_ARGS ]
  7 +then
  8 + echo "Usage: `basename $0` input1 input2"
  9 + exit $E_BADARGS
  10 +fi
  11 +
  12 +echo "hello world param $1, param $2"
... ...