listing7-18_build.xml_signingmidlets

来自「着几乎所有智能机厂商都将有自己配套的App Store,甚至并非智能手机制造商的」· XML_SIGNINGMIDLETS 代码 · 共 31 行

XML_SIGNINGMIDLETS
31
字号
<!-- Automate the signing of MIDlets with the <sign> element when you have a valid key/certificate.
     Use the permissions and optionalPermissions attributes of the <info> element for stating the
     required permissions.
     In this example the password is given as an Ant property, you can define it on the commandline
     with the -D switch: "ant -Dpassword=secret"
 -->

<j2mepolish>
	<info
		license="GPL"
		name="Roadrunner"
		vendorName="A reader."
		version="0.0.1"
		jarName="${polish.vendor}-${polish.name}-roadrunner.jar"
		permissions="javax.microedition.io.Connector.http"
		optionalPermissions="javax.microedition.io.Connector.bluetooth.client"
	/>
	<deviceRequirements>
		<requirement name="Identifier" value="Generic/midp2" />
	</deviceRequirements>
	<build>
		<midlet class="com.apress.roadrunner.Roadrunner" />
		<sign
			keystore="midlets.ks"
			key="SignMIDlet"
			password="${password}"
		/>
	/build>
	emulator />
</j2mepolish>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?