--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+
+<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false">
+ <fileset name="すべて" enabled="true" check-config-name="Google Checks" local="false">
+ <file-match-pattern match-pattern="." include-pattern="true"/>
+ </fileset>
+</fileset-config>
<?xml version="1.0" encoding="UTF-8"?>\r
<classpath>\r
- <classpathentry kind="src" path="src"/>\r
- <classpathentry kind="src" path="unitTest"/>\r
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>\r
- <classpathentry kind="lib" path="extlib/AppleJavaExtensions.jar"/>\r
- <classpathentry kind="lib" path="resources"/>\r
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">\r
+ <attributes>\r
+ <attribute name="maven.pomderived" value="true"/>\r
+ </attributes>\r
+ </classpathentry>\r
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3"/>\r
- <classpathentry kind="output" path="bin"/>\r
+ <classpathentry kind="src" output="target/classes" path="src/main/java">\r
+ <attributes>\r
+ <attribute name="optional" value="true"/>\r
+ <attribute name="maven.pomderived" value="true"/>\r
+ </attributes>\r
+ </classpathentry>\r
+ <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">\r
+ <attributes>\r
+ <attribute name="maven.pomderived" value="true"/>\r
+ </attributes>\r
+ </classpathentry>\r
+ <classpathentry kind="src" output="target/test-classes" path="src/test/java">\r
+ <attributes>\r
+ <attribute name="optional" value="true"/>\r
+ <attribute name="maven.pomderived" value="true"/>\r
+ </attributes>\r
+ </classpathentry>\r
+ <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">\r
+ <attributes>\r
+ <attribute name="maven.pomderived" value="true"/>\r
+ </attributes>\r
+ </classpathentry>\r
+ <classpathentry kind="output" path="target/classes"/>\r
</classpath>\r
#FindBugs User Preferences\r
-#Sun Feb 20 00:21:29 JST 2011\r
+#Tue Feb 13 18:51:32 JST 2018\r
+cloud_id=edu.umd.cs.findbugs.cloud.doNothingCloud\r
detectorAppendingToAnObjectOutputStream=AppendingToAnObjectOutputStream|true\r
+detectorAtomicityProblem=AtomicityProblem|true\r
detectorBadAppletConstructor=BadAppletConstructor|false\r
detectorBadResultSetAccess=BadResultSetAccess|true\r
detectorBadSyntaxForRegularExpression=BadSyntaxForRegularExpression|true\r
detectorBadlyOverriddenAdapter=BadlyOverriddenAdapter|true\r
detectorBooleanReturnNull=BooleanReturnNull|true\r
detectorCallToUnsupportedMethod=CallToUnsupportedMethod|false\r
+detectorCheckExpectedWarnings=CheckExpectedWarnings|false\r
detectorCheckImmutableAnnotation=CheckImmutableAnnotation|true\r
+detectorCheckRelaxingNullnessAnnotation=CheckRelaxingNullnessAnnotation|true\r
detectorCheckTypeQualifiers=CheckTypeQualifiers|true\r
detectorCloneIdiom=CloneIdiom|true\r
detectorComparatorIdiom=ComparatorIdiom|true\r
detectorConfusedInheritance=ConfusedInheritance|true\r
detectorConfusionBetweenInheritedAndOuterMethod=ConfusionBetweenInheritedAndOuterMethod|true\r
+detectorCovariantArrayAssignment=CovariantArrayAssignment|false\r
detectorCrossSiteScripting=CrossSiteScripting|true\r
+detectorDefaultEncodingDetector=DefaultEncodingDetector|true\r
detectorDoInsideDoPrivileged=DoInsideDoPrivileged|true\r
detectorDontCatchIllegalMonitorStateException=DontCatchIllegalMonitorStateException|true\r
detectorDontIgnoreResultOfPutIfAbsent=DontIgnoreResultOfPutIfAbsent|true\r
detectorDuplicateBranches=DuplicateBranches|true\r
detectorEmptyZipFileEntry=EmptyZipFileEntry|true\r
detectorEqualsOperandShouldHaveClassCompatibleWithThis=EqualsOperandShouldHaveClassCompatibleWithThis|true\r
+detectorExplicitSerialization=ExplicitSerialization|true\r
detectorFinalizerNullsFields=FinalizerNullsFields|true\r
detectorFindBadCast2=FindBadCast2|true\r
detectorFindBadForLoop=FindBadForLoop|true\r
detectorFindCircularDependencies=FindCircularDependencies|false\r
+detectorFindComparatorProblems=FindComparatorProblems|true\r
detectorFindDeadLocalStores=FindDeadLocalStores|true\r
detectorFindDoubleCheck=FindDoubleCheck|true\r
detectorFindEmptySynchronizedBlock=FindEmptySynchronizedBlock|true\r
detectorFindPuzzlers=FindPuzzlers|true\r
detectorFindRefComparison=FindRefComparison|true\r
detectorFindReturnRef=FindReturnRef|true\r
+detectorFindRoughConstants=FindRoughConstants|true\r
detectorFindRunInvocations=FindRunInvocations|true\r
detectorFindSelfComparison=FindSelfComparison|true\r
detectorFindSelfComparison2=FindSelfComparison2|true\r
detectorFindUnreleasedLock=FindUnreleasedLock|true\r
detectorFindUnsatisfiedObligation=FindUnsatisfiedObligation|true\r
detectorFindUnsyncGet=FindUnsyncGet|true\r
+detectorFindUseOfNonSerializableValue=FindUseOfNonSerializableValue|true\r
detectorFindUselessControlFlow=FindUselessControlFlow|true\r
+detectorFindUselessObjects=FindUselessObjects|true\r
detectorFormatStringChecker=FormatStringChecker|true\r
detectorHugeSharedStringConstants=HugeSharedStringConstants|true\r
detectorIDivResultCastToDouble=IDivResultCastToDouble|true\r
detectorIncompatMask=IncompatMask|true\r
detectorInconsistentAnnotations=InconsistentAnnotations|true\r
+detectorInefficientIndexOf=InefficientIndexOf|false\r
+detectorInefficientInitializationInsideLoop=InefficientInitializationInsideLoop|false\r
detectorInefficientMemberAccess=InefficientMemberAccess|false\r
detectorInefficientToArray=InefficientToArray|true\r
detectorInfiniteLoop=InfiniteLoop|true\r
detectorInfiniteRecursiveLoop2=InfiniteRecursiveLoop2|false\r
detectorInheritanceUnsafeGetResource=InheritanceUnsafeGetResource|true\r
detectorInitializationChain=InitializationChain|true\r
+detectorInitializeNonnullFieldsInConstructor=InitializeNonnullFieldsInConstructor|true\r
detectorInstantiateStaticClass=InstantiateStaticClass|true\r
+detectorIntCast2LongAsInstant=IntCast2LongAsInstant|true\r
detectorInvalidJUnitTest=InvalidJUnitTest|true\r
detectorIteratorIdioms=IteratorIdioms|true\r
detectorLazyInit=LazyInit|true\r
detectorLostLoggerDueToWeakReference=LostLoggerDueToWeakReference|true\r
detectorMethodReturnCheck=MethodReturnCheck|true\r
detectorMultithreadedInstanceAccess=MultithreadedInstanceAccess|true\r
+detectorMutableEnum=MutableEnum|true\r
detectorMutableLock=MutableLock|true\r
detectorMutableStaticFields=MutableStaticFields|true\r
detectorNaming=Naming|true\r
+detectorNoteUnconditionalParamDerefs=NoteUnconditionalParamDerefs|true\r
detectorNumberConstructor=NumberConstructor|true\r
+detectorOptionalReturnNull=OptionalReturnNull|true\r
detectorOverridingEqualsNotSymmetrical=OverridingEqualsNotSymmetrical|true\r
detectorPreferZeroLengthArrays=PreferZeroLengthArrays|true\r
detectorPublicSemaphores=PublicSemaphores|false\r
detectorQuestionableBooleanAssignment=QuestionableBooleanAssignment|true\r
detectorReadOfInstanceFieldInMethodInvokedByConstructorInSuperclass=ReadOfInstanceFieldInMethodInvokedByConstructorInSuperclass|true\r
detectorReadReturnShouldBeChecked=ReadReturnShouldBeChecked|true\r
+detectorRedundantConditions=RedundantConditions|true\r
detectorRedundantInterfaces=RedundantInterfaces|true\r
detectorRepeatedConditionals=RepeatedConditionals|true\r
detectorRuntimeExceptionCapture=RuntimeExceptionCapture|true\r
detectorSuperfluousInstanceOf=SuperfluousInstanceOf|true\r
detectorSuspiciousThreadInterrupted=SuspiciousThreadInterrupted|true\r
detectorSwitchFallthrough=SwitchFallthrough|true\r
+detectorSynchronizationOnSharedBuiltinConstant=SynchronizationOnSharedBuiltinConstant|true\r
detectorSynchronizeAndNullCheckField=SynchronizeAndNullCheckField|true\r
detectorSynchronizeOnClassLiteralNotGetClass=SynchronizeOnClassLiteralNotGetClass|true\r
detectorSynchronizingOnContentsOfFieldToProtectField=SynchronizingOnContentsOfFieldToProtectField|true\r
detectorXMLFactoryBypass=XMLFactoryBypass|true\r
detector_threshold=2\r
effort=default\r
-filter_settings=Medium|BAD_PRACTICE,CORRECTNESS,MT_CORRECTNESS,PERFORMANCE,STYLE|false\r
-filter_settings_neg=MALICIOUS_CODE,NOISE,I18N,SECURITY,EXPERIMENTAL|\r
+filter_settings=Medium|BAD_PRACTICE,CORRECTNESS,MT_CORRECTNESS,PERFORMANCE,STYLE|false|15\r
+filter_settings_neg=MALICIOUS_CODE,SECURITY,EXPERIMENTAL,NOISE,I18N|\r
run_at_full_build=false\r
/docs
/lib
/bin
+/target/
+.DS_Store
</projects>\r
<buildSpec>\r
<buildCommand>\r
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>\r
+ <arguments>\r
+ </arguments>\r
+ </buildCommand>\r
+ <buildCommand>\r
<name>org.eclipse.jdt.core.javabuilder</name>\r
<arguments>\r
</arguments>\r
</buildCommand>\r
+ <buildCommand>\r
+ <name>org.eclipse.m2e.core.maven2Builder</name>\r
+ <arguments>\r
+ </arguments>\r
+ </buildCommand>\r
</buildSpec>\r
<natures>\r
+ <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
<nature>org.eclipse.jdt.core.javanature</nature>\r
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>\r
</natures>\r
</projectDescription>\r
--- /dev/null
+activeContentFilterList=*.makefile,makefile,*.Makefile,Makefile,Makefile.*,*.mk,MANIFEST.MF,.project\r
+addNewLine=true\r
+convertActionOnSaave=AnyEdit.CnvrtTabToSpaces\r
+eclipse.preferences.version=1\r
+fixLineDelimiters=false\r
+ignoreBlankLinesWhenTrimming=false\r
+inActiveContentFilterList=\r
+javaTabWidthForJava=true\r
+org.eclipse.jdt.ui.editor.tab.width=2\r
+projectPropsEnabled=false\r
+removeTrailingSpaces=true\r
+replaceAllSpaces=false\r
+replaceAllTabs=false\r
+saveAndAddLine=false\r
+saveAndConvert=false\r
+saveAndFixLineDelimiters=false\r
+saveAndTrim=true\r
+useModulo4Tabs=false\r
eclipse.preferences.version=1\r
-encoding//resources/appinfo/about.html=UTF-8\r
-encoding//resources/appinfo/about_ja.html=UTF-8\r
+encoding//src/main/java=UTF-8\r
+encoding//src/main/resources=UTF-8\r
+encoding//src/main/resources/appinfo/about.html=UTF-8\r
+encoding//src/main/resources/appinfo/about_ja.html=UTF-8\r
+encoding//src/test/java=UTF-8\r
encoding/<project>=UTF-8\r
-#Fri Mar 11 06:56:48 JST 2011\r
eclipse.preferences.version=1\r
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled\r
+org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate\r
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5\r
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve\r
org.eclipse.jdt.core.compiler.compliance=1.5\r
--- /dev/null
+XDOCLETBUILDERACTIVE=true\r
+XDOCLETHOME=\r
+XDOCLETUSEGLOBAL=true\r
+XDOCLETVERSION=1.2.1\r
+eclipse.preferences.version=1\r
--- /dev/null
+activeProfiles=\r
+eclipse.preferences.version=1\r
+resolveWorkspaceProjects=true\r
+version=1\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<faceted-project>\r
+ <installed facet="java" version="1.8"/>\r
+</faceted-project>\r
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r
-<project name="CharacterManaJ" default="makeExecutableJar">\r
- <description>CharacterManaJ</description>\r
-\r
- <!-- 出力するファイル名 -->\r
- <property name="appName" value="CharacterManaJ.app"/>\r
- <property name="jarName" value="CharacterManaJ.jar"/>\r
- <property name="distdir" value="dist"/>\r
-\r
- <!-- ビルド日時とバージョン、ベンダー -->\r
- <property file="resources/version.properties"/>\r
- <tstamp prefix="build-info">\r
- <format property="current-date" pattern="yyyy-MM-dd" locale="en" />\r
- <format property="current-time" pattern="hh:mm:ss a z" locale="en" />\r
- </tstamp>\r
-\r
- <!-- Mac環境でのビルドか? -->\r
- <condition property="isMacOSX">\r
- <and>\r
- <os family="mac"/>\r
- <os family="unix"/>\r
- </and>\r
- </condition>\r
-\r
- <!-- launch4jの設定 -->\r
- <property name="launch4j.dir" location="C:/Java/Launch4j" />\r
-\r
- <!-- デフォルトのターゲット、JARファイルを作成する -->\r
- <target name="makeExecutableJar" description="makejar">\r
- <delete dir="work"/>\r
- <mkdir dir="work"/>\r
- <!-- J2SE5以降をターゲットにコンパイルする。(Tiger/Leopard on PPCのため)\r
- JDK6のAppleExtentionsでは非推奨になっているものがあるため警告がでます。\r
- -->\r
- <javac\r
- target="1.5"\r
- destdir="work"\r
- srcdir="src"\r
- encoding="UTF-8"\r
- debug="on"\r
- includeantruntime="false">\r
- <classpath>\r
- <fileset dir="extlib">\r
- <include name="**/*.jar"/>\r
- </fileset>\r
- </classpath>\r
- <compilerarg value="-Xlint:deprecation" />\r
- <compilerarg value="-Xlint:unchecked" />\r
- </javac>\r
-\r
- <!-- リソースをコピーする -->\r
- <copy todir="work">\r
- <fileset dir="resources">\r
- <exclude name="**/*.java"/>\r
- </fileset>\r
- </copy>\r
-\r
- <!-- ソース上のリソースをコピーする -->\r
- <copy todir="work">\r
- <fileset dir="src">\r
- <exclude name="**/*.java"/>\r
- </fileset>\r
- </copy>\r
-\r
- <!-- JARを作成する -->\r
- <jar jarfile="${distdir}/CharacterManaJ.jar"\r
- basedir="work"\r
- index="true">\r
- <manifest>\r
- <attribute name="Main-Class" value="charactermanaj.CharacterManaJ" />\r
- <!-- スプラッシュ画像 -->\r
- <attribute name="Splashscreen-Image" value="splash.png"/>\r
- <!-- バージョン情報とか -->\r
- <attribute name="Built-By" value="${vendor}" />\r
- <attribute name="Built-On" value="${build-info.current-date}" />\r
- <attribute name="Built-At" value="${build-info.current-time}" />\r
- <attribute name="Specification-Title" value="CharacterManaJ" />\r
- <attribute name="Specification-Version" value="${specification_version}" />\r
- <attribute name="Specification-Vendor" value="${vendor}" />\r
- <attribute name="Implementation-Title" value="CharacterManaJ ${specification_version} (${implements_version})" />\r
- <attribute name="Implementation-Version" value="${implements_version} ${build-info.current-date}" />\r
- <attribute name="Implementation-Vendor" value="${vendor}" />\r
- </manifest>\r
- </jar>\r
- <delete dir="work"/>\r
- </target>\r
-\r
- <!-- Launch4jによるexeの作成 -->\r
- <taskdef name="launch4j"\r
- classname="net.sf.launch4j.ant.Launch4jTask"\r
- classpath="${launch4j.dir}/launch4j.jar:${launch4j.dir}/lib/xstream.jar"/>\r
- <target name="makeExe" description="コンパイルしてEXE化する" depends="makeExecutableJar">\r
- <!-- launch4jによるexeへのラップ -->\r
- <copy file="launch4j.xml" tofile="launch4j.xml.tmp"\r
- filtering="true" overwrite="true">\r
- <filterset>\r
- <filter token="implements_version" value="${implements_version}"/>\r
- <filter token="exe_file_version" value="${exe_file_version}"/>\r
- </filterset>\r
- </copy>\r
- <launch4j configFile="launch4j.xml.tmp" />\r
- <delete file="launch4j.xml.tmp"/>\r
- </target>\r
-</project>\r
*.exe\r
*.jar\r
*.zip\r
+.DS_Store\r
# JVMRuntimeの設定を取得する.
jdkname=$($PlistBuddy -c "Print JVMRuntime" $APPDIR/Contents/Info.plist 2>/dev/null)
-echo jdkname=$jdkname
+echo Info.plist JVMRuntime=$jdkname
if [ ! -z "$jdkname" ]; then
+ echo "Remove JVMRuntime entry"
# JVMRuntimeなしに設定する
$PlistBuddy -c "Delete :JVMRuntime" $APPDIR/Contents/Info.plist
# 生成したJRE付きのバンドルファイル内からjdk名を取得する
jdkname=$($PlistBuddy -c "print JVMRuntime" $TARGETDIR/CharacterManaJ.app/Contents/Info.plist)
-echo new jdk_name=$jdkname
+echo new: Info.plist.JVMRuntime=$jdkname
if [ -z "$jdkname" ]; then
echo "can't read the new JVMRuntime." >&2
exit 1
# 現行のjdk名を取得する
oldjdkname=$($PlistBuddy -c "print JVMRuntime" $EXPORTDIR/CharacterManaJ.app/Contents/Info.plist)
-echo current: jdk_name=$oldjdkname
+echo old: Info.plist.JVMRuntime=$oldjdkname
if [ "$oldjdkname" = "$jdkname" ]; then
# 同じjdkバージョンならなにもしない
echo "*already same jdk"
else
if [ ! -z "$oldjdkname" ]; then
+ echo "**updating jdk"
# 既存のjdkを消す
rm -fr $EXPORTDIR/CharacterManaJ.app/Contents/PlugIns/$oldjdkname
fi
fi
# バージョン情報をプロパティファイルより抜き出す
-VERSION=$(cat ../resources/version.properties | sed -n -E 's/implements_version=([0123456789.]+).*$/\1/p')
+VERSION=$(cat ../src/main/resources/version.properties | sed -n -E 's/implements_version=([0123456789.]+).*$/\1/p')
echo "version=($VERSION)"
# 生成するDMG名
fi
# プロパティファイルよりバージョン情報の読み込み
-VERSION=$(cat ../resources/version.properties | sed -n -E 's/implements_version=([0123456789.]+).*$/\1/p')
+VERSION=$(cat ../src/main/resources/version.properties | sed -n -E 's/implements_version=([0123456789.]+).*$/\1/p')
echo "version=($VERSION)"
DMG_NAME="CharacterManaJ_${VERSION}_with_jre"
+++ /dev/null
-<launch4jConfig>\r
- <dontWrapJar>false</dontWrapJar>\r
- <headerType>gui</headerType>\r
- <jar>dist\CharacterManaJ.jar</jar>\r
- <outfile>dist\charactermanaj.exe</outfile>\r
- <errTitle></errTitle>\r
- <cmdLine></cmdLine>\r
- <chdir></chdir>\r
- <priority>normal</priority>\r
- <downloadUrl>http://java.com/download</downloadUrl>\r
- <supportUrl></supportUrl>\r
- <customProcName>false</customProcName>\r
- <stayAlive>false</stayAlive>\r
- <manifest></manifest>\r
- <icon>icon.ico</icon>\r
- <jre>\r
- <path>jre</path>\r
- <minVersion>1.5.0</minVersion>\r
- <maxVersion></maxVersion>\r
- <jdkPreference>preferJre</jdkPreference>\r
- <initialHeapSize>64</initialHeapSize>\r
- <maxHeapSize>128</maxHeapSize>\r
- </jre>\r
- <versionInfo>\r
- <fileVersion>@exe_file_version@</fileVersion>\r
- <txtFileVersion>@implements_version@</txtFileVersion>\r
- <fileDescription>CharacterManaJ</fileDescription>\r
- <copyright>https://osdn.jp/projects/charactermanaj/simple/</copyright>\r
- <productVersion>@exe_file_version@</productVersion>\r
- <txtProductVersion>@implements_version@</txtProductVersion>\r
- <productName>CharacterManaJ</productName>\r
- <companyName>seraphy@users.osdn.me</companyName>\r
- <internalName>CharacterManaJ</internalName>\r
- <originalFilename>charactermanaj.exe</originalFilename>\r
- </versionInfo>\r
-</launch4jConfig>
\ No newline at end of file
--- /dev/null
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">\r
+ <modelVersion>4.0.0</modelVersion>\r
+\r
+ <groupId>jp.seraphyware.charactermanaj</groupId>\r
+ <artifactId>CharacterManaJ</artifactId>\r
+ <version>1.0</version>\r
+\r
+ <url>https://osdn.net/projects/charactermanaj/</url>\r
+\r
+ <properties>\r
+ <appname>CharacterManaJ</appname>\r
+ <exename>${appname}.exe</exename>\r
+ <mainClass>charactermanaj.CharacterManaJ</mainClass>\r
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r
+ <maven.compiler.source>1.5</maven.compiler.source>\r
+ <maven.compiler.target>1.5</maven.compiler.target>\r
+ <maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ss'Z'</maven.build.timestamp.format>\r
+ </properties>\r
+\r
+ <dependencies>\r
+ <!-- https://mvnrepository.com/artifact/com.apple/AppleJavaExtensions -->\r
+ <dependency>\r
+ <groupId>com.apple</groupId>\r
+ <artifactId>AppleJavaExtensions</artifactId>\r
+ <version>1.4</version>\r
+ <scope>provided</scope>\r
+ </dependency>\r
+ <!-- テスト -->\r
+ <dependency>\r
+ <groupId>junit</groupId>\r
+ <artifactId>junit</artifactId>\r
+ <version>4.11</version>\r
+ <scope>test</scope>\r
+ </dependency>\r
+ <!-- テストモック https://mvnrepository.com/artifact/org.mockito/mockito-all -->\r
+ <dependency>\r
+ <groupId>org.mockito</groupId>\r
+ <artifactId>mockito-all</artifactId>\r
+ <version>1.10.19</version>\r
+ <scope>test</scope>\r
+ </dependency>\r
+ </dependencies>\r
+\r
+ <build>\r
+ <plugins>\r
+ <!-- プロパティの参照 -->\r
+ <plugin>\r
+ <groupId>org.codehaus.mojo</groupId>\r
+ <artifactId>properties-maven-plugin</artifactId>\r
+ <version>1.0.0</version>\r
+ <executions>\r
+ <execution>\r
+ <phase>initialize</phase>\r
+ <goals>\r
+ <goal>read-project-properties</goal>\r
+ </goals>\r
+ <configuration>\r
+ <files>\r
+ <file>src/main/resources/version.properties</file>\r
+ </files>\r
+ </configuration>\r
+ </execution>\r
+ </executions>\r
+ </plugin>\r
+ <plugin>\r
+ <!-- コンパイラープラグイン -->\r
+ <groupId>org.apache.maven.plugins</groupId>\r
+ <artifactId>maven-compiler-plugin</artifactId>\r
+ <version>3.1</version>\r
+ <configuration>\r
+ <source>${maven.compiler.source}</source>\r
+ <target>${maven.compiler.target}</target>\r
+ <compilerArgument>-Xlint:all</compilerArgument>\r
+ </configuration>\r
+ </plugin>\r
+ <plugin>\r
+ <!-- 実行可能jar本体のパッケージを行う (package時) -->\r
+ <groupId>org.apache.maven.plugins</groupId>\r
+ <artifactId>maven-jar-plugin</artifactId>\r
+ <version>2.6</version>\r
+ <configuration>\r
+ <finalName>${project.artifactId}</finalName>\r
+ <archive>\r
+ <manifest>\r
+ <!-- 依存ライブラリ/lib/*.jarをクラスパスに追加する -->\r
+ <addClasspath>true</addClasspath>\r
+ <classpathPrefix>lib/</classpathPrefix>\r
+ <mainClass>${mainClass}</mainClass>\r
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>\r
+ <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>\r
+ </manifest>\r
+ <manifestEntries>\r
+ <!-- 起動時のスプラッシュ画像 -->\r
+ <SplashScreen-Image>splash.png</SplashScreen-Image>\r
+ <Built-By>${vendor}</Built-By>\r
+ <Build-At>${maven.build.timestamp}</Build-At>\r
+ <Implementation-Vendor><![CDATA[Copyright (C) 2010 ${vendor}]]></Implementation-Vendor>\r
+ </manifestEntries>\r
+ </archive>\r
+ </configuration>\r
+ </plugin>\r
+ <plugin>\r
+ <!-- 依存ライブラリをターゲットのlibフォルダ下にコピーする(package時) -->\r
+ <groupId>org.apache.maven.plugins</groupId>\r
+ <artifactId>maven-dependency-plugin</artifactId>\r
+ <version>2.10</version>\r
+ <executions>\r
+ <execution>\r
+ <id>copyLibs</id>\r
+ <phase>package</phase>\r
+ <goals>\r
+ <goal>copy-dependencies</goal>\r
+ </goals>\r
+ <configuration>\r
+ <outputDirectory>\r
+ ${project.build.directory}/lib\r
+ </outputDirectory>\r
+ <includeScope>runtime</includeScope>\r
+ </configuration>\r
+ </execution>\r
+ </executions>\r
+ </plugin>\r
+\r
+ <plugin>\r
+ <!-- リソースコピープラグイン -->\r
+ <artifactId>maven-resources-plugin</artifactId>\r
+ <version>2.7</version>\r
+ <executions>\r
+ <execution>\r
+ <id>copy-resources</id>\r
+ <phase>validate</phase>\r
+ <goals>\r
+ <goal>copy-resources</goal>\r
+ </goals>\r
+ <configuration>\r
+ <outputDirectory>${basedir}/target/conf</outputDirectory>\r
+ <resources>\r
+ <resource>\r
+ <directory>conf</directory>\r
+ <filtering>false</filtering>\r
+ </resource>\r
+ </resources>\r
+ </configuration>\r
+ </execution>\r
+ <execution>\r
+ <id>copy-ini-resources</id>\r
+ <phase>package</phase>\r
+ <goals>\r
+ <goal>copy-resources</goal>\r
+ </goals>\r
+ <configuration>\r
+ <outputDirectory>${basedir}/target</outputDirectory>\r
+ <resources>\r
+ <resource>\r
+ <directory>src/main/resources</directory>\r
+ <includes>\r
+ <include>*.l4j.ini</include>\r
+ </includes>\r
+ <filtering>false</filtering>\r
+ </resource>\r
+ </resources>\r
+ </configuration>\r
+ </execution>\r
+ </executions>\r
+ </plugin>\r
+ <plugin>\r
+ <!-- 生成したexe, jar, iniをdistフォルダにコピーする -->\r
+ <artifactId>maven-resources-plugin</artifactId>\r
+ <version>2.7</version>\r
+ <executions>\r
+ <execution>\r
+ <id>copy-resources</id>\r
+ <phase>package</phase>\r
+ <goals>\r
+ <goal>copy-resources</goal>\r
+ </goals>\r
+ <configuration>\r
+ <outputDirectory>${basedir}/dist</outputDirectory>\r
+ <resources>\r
+ <resource>\r
+ <directory>${basedir}/target</directory>\r
+ <includes>\r
+ <include>*.exe</include>\r
+ <include>*.jar</include>\r
+ <include>*.ini</include>\r
+ </includes>\r
+ <filtering>false</filtering>\r
+ </resource>\r
+ </resources>\r
+ </configuration>\r
+ </execution>\r
+ </executions>\r
+ </plugin>\r
+ </plugins>\r
+ </build>\r
+\r
+ <profiles>\r
+ <profile>\r
+ <!-- Windowsの場合のビルド -->\r
+ <id>windows-profile</id>\r
+ <activation>\r
+ <os>\r
+ <family>windows</family>\r
+ </os>\r
+ </activation>\r
+ <build>\r
+ <plugins>\r
+ <plugin>\r
+ <!-- Launch4jによるjarファイルのexe化を行う. http://launch4j.sourceforge.net/docs.html -->\r
+ <groupId>org.bluestemsoftware.open.maven.plugin</groupId>\r
+ <artifactId>launch4j-plugin</artifactId>\r
+ <version>1.5.0.0</version>\r
+ <executions>\r
+ <execution>\r
+ <id>l4j-gui</id>\r
+ <phase>package</phase>\r
+ <goals>\r
+ <goal>launch4j</goal>\r
+ </goals>\r
+ <configuration>\r
+ <headerType>gui</headerType>\r
+ <outfile>target/${exename}</outfile>\r
+ <jar>target/${project.artifactId}.jar</jar>\r
+ <errTitle>Failed to execute the ${project.artifactId}</errTitle>\r
+ <icon>icon.ico</icon>\r
+ <jre>\r
+ <path>jre</path>\r
+ <minVersion>1.5.0</minVersion>\r
+ <initialHeapSize>64</initialHeapSize>\r
+ <maxHeapSize>128</maxHeapSize>\r
+ </jre>\r
+ <versionInfo>\r
+ <fileVersion>${exe_file_version}</fileVersion>\r
+ <txtFileVersion>${implements_version}</txtFileVersion>\r
+ <fileDescription>${appname}</fileDescription>\r
+ <copyright>${vendor}</copyright>\r
+ <productVersion>${exe_file_version}</productVersion>\r
+ <txtProductVersion>${exe_file_version}</txtProductVersion>\r
+ <productName>${appname}</productName>\r
+ <internalName>${appname}</internalName>\r
+ <originalFilename>${exename}</originalFilename>\r
+ </versionInfo>\r
+ </configuration>\r
+ </execution>\r
+ </executions>\r
+ </plugin>\r
+ </plugins>\r
+ </build>\r
+ </profile>\r
+\r
+ <profile>\r
+ <id>osx-profile</id>\r
+ <activation>\r
+ <os>\r
+ <family>mac</family>\r
+ </os>\r
+ </activation>\r
+ <build>\r
+ <plugins>\r
+ <plugin>\r
+ <groupId>org.codehaus.mojo</groupId>\r
+ <artifactId>exec-maven-plugin</artifactId>\r
+ <version>1.6.0</version>\r
+ <executions>\r
+ <execution>\r
+ <id>Version Calculation</id>\r
+ <phase>package</phase>\r
+ <goals>\r
+ <goal>exec</goal>\r
+ </goals>\r
+ <configuration>\r
+ <executable>sh</executable>\r
+ <workingDirectory>${basedir}/dist</workingDirectory>\r
+ <commandlineArgs>-c 'chmod +x *.sh;./build_all.sh'</commandlineArgs>\r
+ </configuration>\r
+ </execution>\r
+ </executions>\r
+ </plugin>\r
+ </plugins>\r
+ </build>\r
+ </profile>\r
+ </profiles>\r
+</project>\r
String language = locale.getLanguage();
String country = locale.getCountry();
String variant = locale.getVariant();
-
+
return new String[] {
"",
"_" + language,
left = path;
right = "";
}
-
+
ArrayList<File> files = new ArrayList<File>();
for (String suffix : getLocalizedSuffix(locale)) {
String newPath = left + suffix + right;
- System.out.println("newpath=" + newPath);
+ //System.out.println("newpath=" + newPath);
files.add(new File(newPath));
}
return files;
* デフォルトのフォントファミリー、カンマ区切り
*/
private String fontPriority = "Lucida Grande";
-
+
public String getFontPriority() {
return fontPriority;
}
-
+
public void setFontPriority(String fontPriority) {
this.fontPriority = fontPriority;
}
--- /dev/null
+-Xms64m\r
+-Xmx128m\r
+"-DcharactersDir=%EXEDIR%\characters"\r
+"-DappConfigFile=%EXEDIR%\appConfig.xml"\r
-vendor=seraphy@seraphyware\r
+vendor=seraphy@seraphyware.jp\r
specification_version=1.0\r
implements_version=0.998\r
exe_file_version=0.9.9.8\r