switching to ant + antenna to build

This commit is contained in:
sillysagiri 2024-10-16 22:27:03 +07:00
parent b4ee571ec2
commit 7e1f91f8a8
12 changed files with 379 additions and 45 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
build build
ideas.txt

View File

@ -1,6 +1,7 @@
{ {
"java.project.referencedLibraries": [ "java.project.referencedLibraries": [
"lib/**/*.jar", "vendor/**/*.jar",
"library/tinygzip/tinylinegzip.jar"
], ],
"java.project.sourcePaths": [ "java.project.sourcePaths": [
"src" "src"

View File

@ -1,31 +0,0 @@
#!/bin/bash
set -e # Exit immediately if any command fails
MAIN_CLASS="dothack/DotHack.java"
PROJECT_NAME="dh"
SOURCE_PATH="src"
PATH_LIBRARIES="lib"
PATH_PROGUARD="/home/sillysagiri/Documents/dothack/proguard.jar"
CLASS_VERSION="1.4"
###
rm -rf "build"
mkdir -p "build/class"
###
CLASSPATH=$(find "$PATH_LIBRARIES" -type f | tr '\n' ':' | sed 's/:$//')
# compile class
javac -source $CLASS_VERSION -target $CLASS_VERSION -cp $CLASSPATH -encoding "utf-8" -d "build/class" -sourcepath $SOURCE_PATH -Xlint:-options -g "${SOURCE_PATH}/${MAIN_CLASS}"
# pack .jar
jar cvfm "build/${PROJECT_NAME}_not_preverified.jar" "${SOURCE_PATH}/META-INF/MANIFEST.MF" -C "build/class" . -C "assets" .
# preverify
java -jar $PATH_PROGUARD -microedition -injars "build/${PROJECT_NAME}_not_preverified.jar" -outjars "build/${PROJECT_NAME}.jar" -libraryjars $CLASSPATH -dontshrink -dontoptimize -dontobfuscate -target $CLASS_VERSION
# release build
java -jar $PATH_PROGUARD -microedition -injars "build/${PROJECT_NAME}_not_preverified.jar" -outjars "build/${PROJECT_NAME}_release.jar" -libraryjars $CLASSPATH -target $CLASS_VERSION -keep "class * extends javax.microedition.midlet.MIDlet" -repackageclasses ""

110
build.xml Normal file
View File

@ -0,0 +1,110 @@
<project name="dothack">
<property file="config.properties"/>
<taskdef resource="antenna.properties" classpath="${antenna.path}"/>
<target name="clean">
<delete dir="build"/>
</target>
<target name="debug">
<mkdir dir="build/classes_debug"/>
<wtkbuild
includeAntRuntime="false"
destdir="build/classes_debug"
srcdir="src"
source="1.4"
target="1.4"
debug="true"
preverify="false"
classpath="${midlet.lib}">
<compilerarg value="-Xlint:-options"/>
</wtkbuild>
<wtkjad
jadfile="build/${project.name}_debug.jad"
name="${project.name}"
vendor="${project.vendor}"
version="${project.version}">
<midlet
name="${midlet.name}"
class="${midlet.class}">
</midlet>
</wtkjad>
<wtkpackage
jarfile="build/${project.name}_debug.jar"
jadfile="build/${project.name}_debug.jad"
libclasspath="${midlet.lib}"
obfuscate="true"
preverify="false">
<!-- include -->
<fileset dir="build/classes_debug"/>
<fileset dir="assets"/>
<!-- using proguard to preverify -->
<argument value="-microedition"/>
<!-- proguard args -->
<argument value="-dontshrink -dontoptimize -dontobfuscate -target 1.4"/>
</wtkpackage>
</target>
<target name="release">
<mkdir dir="build/classes_release"/>
<wtkbuild
includeAntRuntime="false"
destdir="build/classes_release"
srcdir="src"
source="1.4"
target="1.4"
debug="false"
preverify="false"
classpath="${midlet.lib}">
<compilerarg value="-Xlint:-options"/>
</wtkbuild>
<wtkjad
jadfile="build/${project.name}_release.jad"
name="${project.name}"
vendor="${project.vendor}"
version="${project.version}">
<midlet
name="${midlet.name}"
class="${midlet.class}">
</midlet>
</wtkjad>
<wtkpackage
jarfile="build/${project.name}_release.jar"
jadfile="build/${project.name}_release.jad"
libclasspath="${midlet.lib}"
obfuscate="true"
preverify="false">
<!-- include -->
<fileset dir="build/classes_release"/>
<fileset dir="assets"/>
<!-- using proguard to preverify -->
<argument value="-microedition"/>
<!-- proguard args -->
<argument value="-target 1.4 -keep 'class * extends javax.microedition.midlet.MIDlet' -repackageclasses '' -optimizationpasses 4 -allowaccessmodification"/>
</wtkpackage>
</target>
</project>

87
config.properties Normal file
View File

@ -0,0 +1,87 @@
## sdk & tools
antenna.path=/home/sillysagiri/Documents/antenna/antenna-bin-1.2.1-beta.jar
wtk.home=/home/sillysagiri/Documents/wtk/
wtk.proguard.home=/home/sillysagiri/Documents/proguard-7.6.0/
# ======================================================== #
## project
project.name=dothack-allscreen
project.vendor=sillysagiri
project.manifest=MANIFEST.MF
project.version=1.0.0
## midlet
midlet.name=dothack
midlet.class=dothack.DotHack
## Specify library here (separated by `;` )
midlet.lib=library/tinygzip/tinylinegzip.jar
## Preprocessor
symbols=
# ======================================================== #
## WTK Properties
## Specifies the version of CLDC to use.
wtk.cldc.version=1.1
## Specifies the version of MIDP to use.
wtk.midp.version=2.0
## Enables or disables the Multimedia API (MMAPI).
wtk.mmapi.enabled=true
## Enables or disables the Wireless Messaging API (WMA) 1.0 (JSR-120).
# wtk.wma.enabled true
## Enables or disables the Wireless Messaging API (WMA) 2.0 (JSR-205).
# wtk.wma2.enabled=true
## Enables or disables the J2ME Web Services API (J2MEWS).
# wtk.j2mews.enabled=true
## Enables or disables the J2ME Bluetooth API (JSR-82).
# wtk.bluetooth.enabled=true
## Enables or disables the J2ME 3D API (JSR-184).
# wtk.java3d.enabled=true
## Enables or disables the J2ME optional PDA packages (JSR-75).
# wtk.optionalpda.enabled=true
## Enables or disables the J2ME location services API (JSR-179).
# wtk.locationservices.enabled=true
## Enables or disables the J2ME content handler API (JSR-211).
# wtk.contenthandler.enabled=true
## Enables or disables the J2ME Security and Trust Services API (JSR-177).
# wtk.satsa.enabled=true
## Enables or disables the J2ME Mobile Internationalization API (JSR-238).
# wtk.miapi.enabled=true
## Enables or disables the J2ME Advanced Multimedia Supplements API (JSR-234).
# wtk.ams.enabled=true
## Enables or disables the J2ME Payment API (JSR-229).
# wtk.papi.enabled=true
## Enables or disables the J2ME Scalable 2D Vector Graphics API (JSR-226).
# wtk.s2dvgapi.enabled=true
## Enables or disables the J2ME Session Initiation Protocol API (JSR-180).
# wtk.sipapi.enabled=true
## Enables all additional libraries (except for CLDC and MIDP) defined for your toolkit.
# wtk.all.enabled=true
## Sets a totally custom BOOTCLASSPATH. Use this property if the set of APIs you need is not covered by the above properties (for example because you are using the system libraries provided another vendor or you have some important additional libraries).
# wtk.midpapi=Varies
# ======================================================== #

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,178 @@
<!DOCTYPE html>
<html>
<head>
<title>Wayback Machine</title>
<script src="//archive.org/includes/analytics.js?v=cf34f82" type="text/javascript"></script>
<script type="text/javascript">window.addEventListener('DOMContentLoaded',function(){var v=archive_analytics.values;v.service='wb';v.server_name='wwwb-app209.us.archive.org';v.server_ms=1023;archive_analytics.send_pageview({});});</script>
<script type="text/javascript" src="/_static/js/bundle-playback.js?v=aToEIw17" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css?v=omkqRugM" />
<link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css?v=qtvMKcIJ" />
<script src="/_static/js/jquery-1.11.1.min.js"></script>
</head>
<body style="overflow:hidden;">
<!-- BEGIN WAYBACK TOOLBAR INSERT -->
<style type="text/css">
body {
margin-top:0 !important;
padding-top:0 !important;
/*min-width:800px !important;*/
}
</style>
<script>__wm.rw(0);</script>
<div id="wm-ipp-base" lang="en" style="display:none;direction:ltr;">
<div id="wm-ipp" style="position:fixed;left:0;top:0;right:0;">
<div id="wm-ipp-inside">
<div style="position:relative;">
<div id="wm-logo" style="float:left;width:110px;padding-top:12px;">
<a href="/web/" title="Wayback Machine home page"><img src="/_static/images/toolbar/wayback-toolbar-logo-200.png" srcset="/_static/images/toolbar/wayback-toolbar-logo-100.png, /_static/images/toolbar/wayback-toolbar-logo-150.png 1.5x, /_static/images/toolbar/wayback-toolbar-logo-200.png 2x" alt="Wayback Machine" style="width:100px" border="0" /></a>
</div>
<div class="r" style="float:right;">
<div id="wm-btns" style="text-align:right;height:25px;">
<div id="wm-save-snapshot-success">success</div>
<div id="wm-save-snapshot-fail">fail</div>
<a id="wm-save-snapshot-open" href="#"
title="Share via My Web Archive" >
<span class="iconochive-web"></span>
</a>
<a href="https://archive.org/account/login.php"
title="Sign In"
id="wm-sign-in"
>
<span class="iconochive-person"></span>
</a>
<span id="wm-save-snapshot-in-progress" class="iconochive-web"></span>
<a href="http://faq.web.archive.org/" title="Get some help using the Wayback Machine" style="top:-6px;"><span class="iconochive-question" style="color:rgb(87,186,244);font-size:160%;"></span></a>
<a id="wm-tb-close" href="#close" onclick="__wm.h(event);return false;" style="top:-2px;" title="Close the toolbar"><span class="iconochive-remove-circle" style="color:#888888;font-size:240%;"></span></a>
</div>
<div id="wm-share">
<a href="/web/20130928025608/http://web.archive.org/screenshot/http://www.tinyline.com/utils/tinylinegzip/TINYLINE_LICENSE.TXT"
id="wm-screenshot"
title="screenshot">
<span class="wm-icon-screen-shot"></span>
</a>
<a href="#"
id="wm-video"
title="video">
<span class="iconochive-movies"></span>
</a>
<a id="wm-share-facebook" href="#" data-url="https://web.archive.org/web/20130928025608/http://www.tinyline.com/utils/tinylinegzip/TINYLINE_LICENSE.TXT" title="Share on Facebook" style="margin-right:5px;" target="_blank"><span class="iconochive-facebook" style="color:#3b5998;font-size:160%;"></span></a>
<a id="wm-share-twitter" href="#" data-url="https://web.archive.org/web/20130928025608/http://www.tinyline.com/utils/tinylinegzip/TINYLINE_LICENSE.TXT" title="Share on Twitter" style="margin-right:5px;" target="_blank"><span class="iconochive-twitter" style="color:#1dcaff;font-size:160%;"></span></a>
</div>
</div>
<table class="c" style="">
<tbody>
<tr>
<td class="u" colspan="2">
<form target="_top" method="get" action="/web/submit" name="wmtb" id="wmtb"><input type="text" name="url" id="wmtbURL" value="http://www.tinyline.com/utils/tinylinegzip/TINYLINE_LICENSE.TXT" onfocus="this.focus();this.select();" /><input type="hidden" name="type" value="replay" /><input type="hidden" name="date" value="20130928025608" /><input type="submit" value="Go" /></form>
</td>
<td class="n" rowspan="2" style="width:110px;">
<table>
<tbody>
<!-- NEXT/PREV MONTH NAV AND MONTH INDICATOR -->
<tr class="m">
<td class="b" nowrap="nowrap"><a href="https://web.archive.org/web/20130405235344/http://www.tinyline.com:80/utils/tinylinegzip/TINYLINE_LICENSE.TXT" title="05 Apr 2013"><strong>Apr</strong></a></td>
<td class="c" id="displayMonthEl" title="You are here: 02:56:08 Sep 28, 2013">SEP</td>
<td class="f" nowrap="nowrap"><a href="https://web.archive.org/web/20140129040857/http://www.tinyline.com:80/utils/tinylinegzip/TINYLINE_LICENSE.TXT" title="29 Jan 2014"><strong>Jan</strong></a></td>
</tr>
<!-- NEXT/PREV CAPTURE NAV AND DAY OF MONTH INDICATOR -->
<tr class="d">
<td class="b" nowrap="nowrap"><a href="https://web.archive.org/web/20130405235344/http://www.tinyline.com:80/utils/tinylinegzip/TINYLINE_LICENSE.TXT" title="23:53:44 Apr 05, 2013"><img src="/_static/images/toolbar/wm_tb_prv_on.png" alt="Previous capture" width="14" height="16" border="0" /></a></td>
<td class="c" id="displayDayEl" style="width:34px;font-size:24px;white-space:nowrap;" title="You are here: 02:56:08 Sep 28, 2013">28</td>
<td class="f" nowrap="nowrap"><a href="https://web.archive.org/web/20140129040857/http://www.tinyline.com:80/utils/tinylinegzip/TINYLINE_LICENSE.TXT" title="04:08:57 Jan 29, 2014"><img src="/_static/images/toolbar/wm_tb_nxt_on.png" alt="Next capture" width="14" height="16" border="0" /></a></td>
</tr>
<!-- NEXT/PREV YEAR NAV AND YEAR INDICATOR -->
<tr class="y">
<td class="b" nowrap="nowrap"><a href="https://web.archive.org/web/20120923121807/http://www.tinyline.com/utils/tinylinegzip/TINYLINE_LICENSE.TXT" title="23 Sep 2012"><strong>2012</strong></a></td>
<td class="c" id="displayYearEl" title="You are here: 02:56:08 Sep 28, 2013">2013</td>
<td class="f" nowrap="nowrap">2014</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="s">
<div id="wm-nav-captures">
<a class="t" href="/web/20130928025608*/http://www.tinyline.com/utils/tinylinegzip/TINYLINE_LICENSE.TXT" title="See a list of every capture for this URL">38 captures</a>
<div class="r" title="Timespan for captures of this URL">23 Feb 2004 - 29 Jan 2014</div>
</div>
</td>
<td class="k">
<a href="" id="wm-graph-anchor">
<div id="wm-ipp-sparkline" title="Explore captures for this URL" style="position: relative">
<canvas id="wm-sparkline-canvas" width="650" height="27" border="0"></canvas>
</div>
</a>
</td>
</tr>
</tbody>
</table>
<div style="position:absolute;bottom:0;right:2px;text-align:right;">
<a id="wm-expand" class="wm-btn wm-closed" href="#expand" onclick="__wm.ex(event);return false;"><span id="wm-expand-icon" class="iconochive-down-solid"></span> <span style="font-size:80%">About this capture</span></a>
</div>
</div>
<div id="wm-capinfo" style="border-top:1px solid #777;display:none; overflow: hidden">
<div id="wm-capinfo-collected-by">
<div style="background-color:#666;color:#fff;font-weight:bold;text-align:center">COLLECTED BY</div>
<div style="padding:3px;position:relative" id="wm-collected-by-content">
<div style="display:inline-block;vertical-align:top;width:50%;">
<span class="c-logo" style="background-image:url(https://archive.org/services/img/webwidecrawl);"></span>
Organization: <a style="color:#33f;" href="https://archive.org/details/webwidecrawl" target="_new"><span class="wm-title">Internet Archive</span></a>
<div style="max-height:75px;overflow:hidden;position:relative;">
<div style="position:absolute;top:0;left:0;width:100%;height:75px;background:linear-gradient(to bottom,rgba(255,255,255,0) 0%,rgba(255,255,255,0) 90%,rgba(255,255,255,255) 100%);"></div>
The Internet Archive discovers and captures web pages through many different web crawls.
At any given time several distinct crawls are running, some for months, and some every day or longer.
View the web archive through the <a href="http://archive.org/web/web.php">Wayback Machine</a>.
</div>
</div>
<div style="display:inline-block;vertical-align:top;width:49%;">
<span class="c-logo" style="background-image:url(https://archive.org/services/img/wide00009)"></span>
<div>Collection: <a style="color:#33f;" href="https://archive.org/details/wide00009" target="_new"><span class="wm-title">Wide Crawl started August 2013</span></a></div>
<div style="max-height:75px;overflow:hidden;position:relative;">
<div style="position:absolute;top:0;left:0;width:100%;height:75px;background:linear-gradient(to bottom,rgba(255,255,255,0) 0%,rgba(255,255,255,0) 90%,rgba(255,255,255,255) 100%);"></div>
Web wide crawl with initial seedlist and crawler configuration from August 2013.
</div>
</div>
</div>
</div>
<div id="wm-capinfo-timestamps">
<div style="background-color:#666;color:#fff;font-weight:bold;text-align:center" title="Timestamps for the elements of this page">TIMESTAMPS</div>
<div>
<div id="wm-capresources" style="margin:0 5px 5px 5px;max-height:250px;overflow-y:scroll !important"></div>
<div id="wm-capresources-loading" style="text-align:left;margin:0 20px 5px 5px;display:none"><img src="/_static/images/loading.gif" alt="loading" /></div>
</div>
</div>
</div></div></div></div><div id="wm-ipp-print">The Wayback Machine - https://web.archive.org/web/20130928025608/http://www.tinyline.com/utils/tinylinegzip/TINYLINE_LICENSE.TXT</div>
<div id="donato" style="position:relative;width:100%;">
<div id="donato-base">
<iframe id="donato-if" src="https://archive.org/includes/donate.php?as_page=1&amp;platform=wb&amp;referer=https%3A//web.archive.org/web/20130928025608/http%3A//www.tinyline.com/utils/tinylinegzip/TINYLINE_LICENSE.TXT"
scrolling="no" frameborder="0" style="width:100%; height:100%">
</iframe>
</div>
</div><script type="text/javascript">
__wm.bt(650,27,25,2,"web","http://www.tinyline.com/utils/tinylinegzip/TINYLINE_LICENSE.TXT","20130928025608",1996,"/_static/",["/_static/css/banner-styles.css?v=omkqRugM","/_static/css/iconochive.css?v=qtvMKcIJ"], false);
__wm.rw(1);
</script>
<!-- END WAYBACK TOOLBAR INSERT --><iframe id="playback" src="https://web.archive.org/web/20130928025608if_/http://www.tinyline.com/utils/tinylinegzip/TINYLINE_LICENSE.TXT" frameborder="0" style="position:absolute;top:65px;left:0;width:100%;">
</iframe>
<script type="text/javascript">
var margin_top = 65;
function fitPlayback() {
$('#playback').css({
height: (window.innerHeight - margin_top) + 'px',
top: margin_top
});
}
fitPlayback();
$(window).on('resize', function() {
fitPlayback();
});
$('#wm-tb-close').click(function(){
margin_top = 0;
fitPlayback();
});
</script>
</body>
</html>

Binary file not shown.

View File

@ -1,12 +0,0 @@
Manifest-Version: 1.0
MIDlet-1: 닷핵,/logo/menet.png,dothack.DotHack
MIDlet-Vendor: MeNet21
MIDlet-Info-URL: http://java.sun.com/j2me
MIDlet-Name: 닷핵
MIDlet-Description: MeNet21
MIDlet-Version: 1.2
MicroEdition-Configuration: CLDC-1.1
MicroEdition-Profile: MIDP-2.0
Sagiri-Note: music converted to pcm and removed LG MMAPI dependency
Sagiri-URL: https://sillysagiri.moe