lxc
2 years ago
8496 changed files with 1066507 additions and 0 deletions
Binary file not shown.
Binary file not shown.
@ -0,0 +1,21 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<classpath> |
|||
<classpathentry kind="src" path="src"/> |
|||
<classpathentry kind="src" path="test"/> |
|||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> |
|||
<classpathentry kind="lib" path="lib/commons-codec-1.4.jar"/> |
|||
<classpathentry kind="lib" path="lib/commons-httpclient-3.0.jar" sourcepath="C:/Users/chenrj/.m2/repository/commons-httpclient/commons-httpclient/3.0/commons-httpclient-3.0-sources.jar"/> |
|||
<classpathentry kind="lib" path="lib/commons-lang-2.6.jar"/> |
|||
<classpathentry kind="lib" path="lib/commons-logging-1.1.1.jar"/> |
|||
<classpathentry kind="lib" path="lib/log4j-1.2.16.jar"/> |
|||
<classpathentry kind="lib" path="lib/mina-core-2.0.4.jar"/> |
|||
<classpathentry kind="lib" path="lib/slf4j-api-1.5.11.jar"/> |
|||
<classpathentry kind="lib" path="lib/slf4j-log4j12-1.5.11.jar"/> |
|||
<classpathentry kind="lib" path="lib/jackson-core-asl-1.9.13.jar"/> |
|||
<classpathentry kind="lib" path="lib/jackson-mapper-asl-1.9.13.jar"/> |
|||
<classpathentry kind="lib" path="lib/lombok.jar"/> |
|||
<classpathentry kind="lib" path="lib/mqtt-client-1.12.jar"/> |
|||
<classpathentry kind="lib" path="lib/org.eclipse.paho.client.mqttv3-1.2.0.jar"/> |
|||
<classpathentry kind="lib" path="lib/fastjson-1.2.56.jar"/> |
|||
<classpathentry kind="output" path="bin"/> |
|||
</classpath> |
@ -0,0 +1,8 @@ |
|||
# Default ignored files |
|||
/shelf/ |
|||
/workspace.xml |
|||
# Datasource local storage ignored files |
|||
/../../../../../../../../../../../../:\Users\xia\Documents\WeChat Files\wxid_4932589325712\FileStorage\File\2022-09\lmp_v0.3.9\lmp_v0.3.9\.idea/dataSources/ |
|||
/dataSources.local.xml |
|||
# Editor-based HTTP Client requests |
|||
/httpRequests/ |
@ -0,0 +1,6 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<project version="4"> |
|||
<component name="AntConfiguration"> |
|||
<buildFile url="file://$PROJECT_DIR$/build.xml" /> |
|||
</component> |
|||
</project> |
@ -0,0 +1,22 @@ |
|||
<component name="ArtifactManager"> |
|||
<artifact type="jar" name="LMP:jar"> |
|||
<output-path>$PROJECT_DIR$/out/artifacts/LMP_jar</output-path> |
|||
<root id="archive" name="LMP.jar"> |
|||
<element id="module-output" name="LMP" /> |
|||
<element id="extracted-dir" path="$PROJECT_DIR$/lib/slf4j-api-1.5.11.jar" path-in-jar="/" /> |
|||
<element id="extracted-dir" path="$PROJECT_DIR$/lib/commons-httpclient-3.0.jar" path-in-jar="/" /> |
|||
<element id="extracted-dir" path="$PROJECT_DIR$/lib/log4j-1.2.16.jar" path-in-jar="/" /> |
|||
<element id="extracted-dir" path="$PROJECT_DIR$/lib/lombok.jar" path-in-jar="/" /> |
|||
<element id="extracted-dir" path="$PROJECT_DIR$/lib/mina-core-2.0.4.jar" path-in-jar="/" /> |
|||
<element id="extracted-dir" path="$PROJECT_DIR$/lib/mqtt-client-1.12.jar" path-in-jar="/" /> |
|||
<element id="extracted-dir" path="$PROJECT_DIR$/lib/commons-codec-1.4.jar" path-in-jar="/" /> |
|||
<element id="extracted-dir" path="$PROJECT_DIR$/lib/org.eclipse.paho.client.mqttv3-1.2.0.jar" path-in-jar="/" /> |
|||
<element id="extracted-dir" path="$PROJECT_DIR$/lib/commons-lang-2.6.jar" path-in-jar="/" /> |
|||
<element id="extracted-dir" path="$PROJECT_DIR$/lib/fastjson-1.2.56.jar" path-in-jar="/" /> |
|||
<element id="extracted-dir" path="$PROJECT_DIR$/lib/commons-logging-1.1.1.jar" path-in-jar="/" /> |
|||
<element id="extracted-dir" path="$PROJECT_DIR$/lib/slf4j-log4j12-1.5.11.jar" path-in-jar="/" /> |
|||
<element id="extracted-dir" path="$PROJECT_DIR$/lib/jackson-core-asl-1.9.13.jar" path-in-jar="/" /> |
|||
<element id="extracted-dir" path="$PROJECT_DIR$/lib/jackson-mapper-asl-1.9.13.jar" path-in-jar="/" /> |
|||
</root> |
|||
</artifact> |
|||
</component> |
@ -0,0 +1,12 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<project version="4"> |
|||
<component name="CompilerConfiguration"> |
|||
<option name="BUILD_PROCESS_ADDITIONAL_VM_OPTIONS" value="-Djps.track.ap.dependencies=false" /> |
|||
<annotationProcessing> |
|||
<profile default="true" name="Default" enabled="true" /> |
|||
</annotationProcessing> |
|||
<bytecodeTargetLevel> |
|||
<module name="LMP" target="8" /> |
|||
</bytecodeTargetLevel> |
|||
</component> |
|||
</project> |
@ -0,0 +1,10 @@ |
|||
<component name="libraryTable"> |
|||
<library name="lib"> |
|||
<CLASSES> |
|||
<root url="file://$PROJECT_DIR$/lib" /> |
|||
</CLASSES> |
|||
<JAVADOC /> |
|||
<SOURCES /> |
|||
<jarDirectory url="file://$PROJECT_DIR$/lib" recursive="false" /> |
|||
</library> |
|||
</component> |
@ -0,0 +1,9 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<project version="4"> |
|||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK"> |
|||
<output url="file://$PROJECT_DIR$/out" /> |
|||
</component> |
|||
<component name="ProjectType"> |
|||
<option name="id" value="jpab" /> |
|||
</component> |
|||
</project> |
@ -0,0 +1,8 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<project version="4"> |
|||
<component name="ProjectModuleManager"> |
|||
<modules> |
|||
<module fileurl="file://$PROJECT_DIR$/LMP.iml" filepath="$PROJECT_DIR$/LMP.iml" /> |
|||
</modules> |
|||
</component> |
|||
</project> |
@ -0,0 +1,28 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<projectDescription> |
|||
<name>LMP</name> |
|||
<comment></comment> |
|||
<projects> |
|||
</projects> |
|||
<buildSpec> |
|||
<buildCommand> |
|||
<name>org.eclipse.jdt.core.javabuilder</name> |
|||
<arguments> |
|||
</arguments> |
|||
</buildCommand> |
|||
</buildSpec> |
|||
<natures> |
|||
<nature>org.eclipse.jdt.core.javanature</nature> |
|||
</natures> |
|||
<filteredResources> |
|||
<filter> |
|||
<id>1664096443839</id> |
|||
<name></name> |
|||
<type>30</type> |
|||
<matcher> |
|||
<id>org.eclipse.core.resources.regexFilterMatcher</id> |
|||
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments> |
|||
</matcher> |
|||
</filter> |
|||
</filteredResources> |
|||
</projectDescription> |
@ -0,0 +1,4 @@ |
|||
eclipse.preferences.version=1 |
|||
encoding//src/log4j.properties=UTF-8 |
|||
encoding/<project>=UTF-8 |
|||
encoding/config.properties=UTF-8 |
@ -0,0 +1,13 @@ |
|||
eclipse.preferences.version=1 |
|||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled |
|||
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate |
|||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 |
|||
org.eclipse.jdt.core.compiler.codegen.targetlspform=1.7 |
|||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve |
|||
org.eclipse.jdt.core.compiler.compliance=1.8 |
|||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate |
|||
org.eclipse.jdt.core.compiler.debug.localVariable=generate |
|||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate |
|||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error |
|||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error |
|||
org.eclipse.jdt.core.compiler.source=1.8 |
@ -0,0 +1,173 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<module type="JAVA_MODULE" version="4"> |
|||
<component name="EclipseModuleManager"> |
|||
<libelement value="jar://$MODULE_DIR$/lib/commons-codec-1.4.jar!/" /> |
|||
<libelement value="jar://$MODULE_DIR$/lib/commons-httpclient-3.0.jar!/" /> |
|||
<libelement value="jar://$MODULE_DIR$/lib/commons-lang-2.6.jar!/" /> |
|||
<libelement value="jar://$MODULE_DIR$/lib/commons-logging-1.1.1.jar!/" /> |
|||
<libelement value="jar://$MODULE_DIR$/lib/log4j-1.2.16.jar!/" /> |
|||
<libelement value="jar://$MODULE_DIR$/lib/mina-core-2.0.4.jar!/" /> |
|||
<libelement value="jar://$MODULE_DIR$/lib/slf4j-api-1.5.11.jar!/" /> |
|||
<libelement value="jar://$MODULE_DIR$/lib/slf4j-log4j12-1.5.11.jar!/" /> |
|||
<libelement value="jar://$MODULE_DIR$/lib/jackson-core-asl-1.9.13.jar!/" /> |
|||
<libelement value="jar://$MODULE_DIR$/lib/jackson-mapper-asl-1.9.13.jar!/" /> |
|||
<libelement value="jar://$MODULE_DIR$/lib/lombok.jar!/" /> |
|||
<libelement value="jar://$MODULE_DIR$/lib/mqtt-client-1.12.jar!/" /> |
|||
<libelement value="jar://$MODULE_DIR$/lib/org.eclipse.paho.client.mqttv3-1.2.0.jar!/" /> |
|||
<libelement value="jar://$MODULE_DIR$/lib/fastjson-1.2.56.jar!/" /> |
|||
<src_description expected_position="0"> |
|||
<src_folder value="file://$MODULE_DIR$/src" expected_position="0" /> |
|||
<src_folder value="file://$MODULE_DIR$/test" expected_position="1" /> |
|||
</src_description> |
|||
</component> |
|||
<component name="NewModuleRootManager"> |
|||
<output url="file://$MODULE_DIR$/bin" /> |
|||
<exclude-output /> |
|||
<content url="file://$MODULE_DIR$"> |
|||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> |
|||
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="false" /> |
|||
</content> |
|||
<orderEntry type="inheritedJdk" /> |
|||
<orderEntry type="sourceFolder" forTests="false" /> |
|||
<orderEntry type="module-library"> |
|||
<library name="commons-codec-1.4.jar"> |
|||
<CLASSES> |
|||
<root url="jar://$MODULE_DIR$/lib/commons-codec-1.4.jar!/" /> |
|||
</CLASSES> |
|||
<JAVADOC /> |
|||
<SOURCES /> |
|||
</library> |
|||
</orderEntry> |
|||
<orderEntry type="module-library"> |
|||
<library name="commons-httpclient-3.0.jar"> |
|||
<CLASSES> |
|||
<root url="jar://$MODULE_DIR$/lib/commons-httpclient-3.0.jar!/" /> |
|||
</CLASSES> |
|||
<JAVADOC /> |
|||
<SOURCES> |
|||
<root url="file://C:/Users/chenrj/.m2/repository/commons-httpclient/commons-httpclient/3.0/commons-httpclient-3.0-sources.jar" /> |
|||
</SOURCES> |
|||
</library> |
|||
</orderEntry> |
|||
<orderEntry type="module-library"> |
|||
<library name="commons-lang-2.6.jar"> |
|||
<CLASSES> |
|||
<root url="jar://$MODULE_DIR$/lib/commons-lang-2.6.jar!/" /> |
|||
</CLASSES> |
|||
<JAVADOC /> |
|||
<SOURCES /> |
|||
</library> |
|||
</orderEntry> |
|||
<orderEntry type="module-library"> |
|||
<library name="commons-logging-1.1.1.jar"> |
|||
<CLASSES> |
|||
<root url="jar://$MODULE_DIR$/lib/commons-logging-1.1.1.jar!/" /> |
|||
</CLASSES> |
|||
<JAVADOC /> |
|||
<SOURCES /> |
|||
</library> |
|||
</orderEntry> |
|||
<orderEntry type="module-library"> |
|||
<library name="log4j-1.2.16.jar"> |
|||
<CLASSES> |
|||
<root url="jar://$MODULE_DIR$/lib/log4j-1.2.16.jar!/" /> |
|||
</CLASSES> |
|||
<JAVADOC /> |
|||
<SOURCES /> |
|||
</library> |
|||
</orderEntry> |
|||
<orderEntry type="module-library"> |
|||
<library name="mina-core-2.0.4.jar"> |
|||
<CLASSES> |
|||
<root url="jar://$MODULE_DIR$/lib/mina-core-2.0.4.jar!/" /> |
|||
</CLASSES> |
|||
<JAVADOC /> |
|||
<SOURCES /> |
|||
</library> |
|||
</orderEntry> |
|||
<orderEntry type="module-library"> |
|||
<library name="slf4j-api-1.5.11.jar"> |
|||
<CLASSES> |
|||
<root url="jar://$MODULE_DIR$/lib/slf4j-api-1.5.11.jar!/" /> |
|||
</CLASSES> |
|||
<JAVADOC /> |
|||
<SOURCES /> |
|||
</library> |
|||
</orderEntry> |
|||
<orderEntry type="module-library"> |
|||
<library name="slf4j-log4j12-1.5.11.jar"> |
|||
<CLASSES> |
|||
<root url="jar://$MODULE_DIR$/lib/slf4j-log4j12-1.5.11.jar!/" /> |
|||
</CLASSES> |
|||
<JAVADOC /> |
|||
<SOURCES /> |
|||
</library> |
|||
</orderEntry> |
|||
<orderEntry type="module-library"> |
|||
<library name="jackson-core-asl-1.9.13.jar"> |
|||
<CLASSES> |
|||
<root url="jar://$MODULE_DIR$/lib/jackson-core-asl-1.9.13.jar!/" /> |
|||
</CLASSES> |
|||
<JAVADOC /> |
|||
<SOURCES /> |
|||
</library> |
|||
</orderEntry> |
|||
<orderEntry type="module-library"> |
|||
<library name="jackson-mapper-asl-1.9.13.jar"> |
|||
<CLASSES> |
|||
<root url="jar://$MODULE_DIR$/lib/jackson-mapper-asl-1.9.13.jar!/" /> |
|||
</CLASSES> |
|||
<JAVADOC /> |
|||
<SOURCES /> |
|||
</library> |
|||
</orderEntry> |
|||
<orderEntry type="module-library"> |
|||
<library name="lombok.jar"> |
|||
<CLASSES> |
|||
<root url="jar://$MODULE_DIR$/lib/lombok.jar!/" /> |
|||
</CLASSES> |
|||
<JAVADOC /> |
|||
<SOURCES /> |
|||
</library> |
|||
</orderEntry> |
|||
<orderEntry type="module-library"> |
|||
<library name="mqtt-client-1.12.jar"> |
|||
<CLASSES> |
|||
<root url="jar://$MODULE_DIR$/lib/mqtt-client-1.12.jar!/" /> |
|||
</CLASSES> |
|||
<JAVADOC /> |
|||
<SOURCES /> |
|||
</library> |
|||
</orderEntry> |
|||
<orderEntry type="module-library"> |
|||
<library name="org.eclipse.paho.client.mqttv3-1.2.0.jar"> |
|||
<CLASSES> |
|||
<root url="jar://$MODULE_DIR$/lib/org.eclipse.paho.client.mqttv3-1.2.0.jar!/" /> |
|||
</CLASSES> |
|||
<JAVADOC /> |
|||
<SOURCES /> |
|||
</library> |
|||
</orderEntry> |
|||
<orderEntry type="module-library"> |
|||
<library name="fastjson-1.2.56.jar"> |
|||
<CLASSES> |
|||
<root url="jar://$MODULE_DIR$/lib/fastjson-1.2.56.jar!/" /> |
|||
</CLASSES> |
|||
<JAVADOC /> |
|||
<SOURCES /> |
|||
</library> |
|||
</orderEntry> |
|||
<orderEntry type="library" name="lib" level="project" /> |
|||
<orderEntry type="module-library"> |
|||
<library> |
|||
<CLASSES> |
|||
<root url="file://$MODULE_DIR$/lib" /> |
|||
</CLASSES> |
|||
<JAVADOC /> |
|||
<SOURCES /> |
|||
<jarDirectory url="file://$MODULE_DIR$/lib" recursive="false" /> |
|||
</library> |
|||
</orderEntry> |
|||
<orderEntry type="library" exported="" scope="PROVIDED" name="Tomcat 9.0.7" level="application_server_libraries" /> |
|||
</component> |
|||
</module> |
@ -0,0 +1,3 @@ |
|||
Manifest-Version: 1.0 |
|||
Main-Class: com.lpro.iot.server.MinaServer |
|||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,41 @@ |
|||
############################################################################# |
|||
# Licensed to the Apache Software Foundation (ASF) under one or more |
|||
# contributor license agreements. See the NOTICE file distributed with |
|||
# this work for additional information regarding copyright ownership. |
|||
# The ASF licenses this file to You under the Apache License, Version 2.0 |
|||
# (the "License"); you may not use this file except in compliance with |
|||
# the License. You may obtain a copy of the License at |
|||
# |
|||
# http://www.apache.org/licenses/LICENSE-2.0 |
|||
# |
|||
# Unless required by applicable law or agreed to in writing, software |
|||
# distributed under the License is distributed on an "AS IS" BASIS, |
|||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|||
# See the License for the specific language governing permissions and |
|||
# limitations under the License. |
|||
############################################################################# |
|||
log4j.rootLogger=INFO,CONSOLE,R |
|||
log4j.additivity.org.apache=true |
|||
|
|||
#全局的日志级别(打印sql必须要该属性) |
|||
log4j.appender.Threshold=INFO |
|||
|
|||
#ConsoleAppender |
|||
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender |
|||
log4j.appender.CONSOLE.Threshold=DEBUG |
|||
log4j.appender.CONSOLE.Target=System.out |
|||
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout |
|||
log4j.appender.CONSOLE.layout.ConversionPattern=%d %-5p [%t] -%l - %m%n |
|||
|
|||
log4j.appender.R=org.apache.log4j.RollingFileAppender |
|||
log4j.appender.R.Threshold=DEBUG |
|||
log4j.appender.R.File=/log/lpm/${lpmKey}/${lpmKey}.log |
|||
log4j.appender.R.MaxFileSize=2048KB |
|||
log4j.appender.R.Append=true |
|||
log4j.appender.R.MaxBackupIndex=20 |
|||
log4j.appender.R.layout=org.apache.log4j.PatternLayout |
|||
|
|||
log4j.appender.R.layout.ConversionPattern=%d %p [%c] - <%m>%n |
|||
|
|||
|
|||
|
Binary file not shown.
@ -0,0 +1,123 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!--project 用于定义一个ant工程,其中的三项name、default、basedir缺一不可。 |
|||
作用分别为:定义工程名、制定默认执行的任务、以及工程基础的路径型(它是计算其它路径的基础,一般情况下使用.即在java工程根目录即可)--> |
|||
<project name="LSM" default="compile" basedir="."> |
|||
<!--描述,个人觉得就是一提示作用,没什么实际用途--> |
|||
<description>LSM</description> |
|||
<!--定义源文件路径,其中的value换成location也行,使用value的时候,${src}得到的就是src这个值,如果使用location,得到的是src这个目录的绝对路径--> |
|||
<property name="src" value="src" /> |
|||
<property name="classes" value="bin/classes" /> |
|||
<!-- 生成在此目录中 --> |
|||
<property name="dist.dir" value="./build" /> |
|||
<!--构造打包时Class-Path需要的路径 --> |
|||
<!--pathconvert用于对目录进行组合 property即这个组合的名字,pathsep作用是各个文件之间的分隔符, |
|||
如果不写,在windows平台默认是分号。但时在MANIFEST.MF这个文件中,各个jar包之间要用空格区分, |
|||
因此。这里就写成空格了 |
|||
--> |
|||
<pathconvert property="lib" pathsep=" "> |
|||
<!--mapper,对路径组合方式进行控制--> |
|||
<mapper> |
|||
<!--chainedmapper 作用是联合多个mapper--> |
|||
<chainedmapper> |
|||
<!--过滤文件,将路径去掉,只保留文件名--> |
|||
<flattenmapper /> |
|||
<!--过滤+转换器,将所有的文件名前面都加上一个lib,我们知道lib目录下面有jar包, |
|||
lib/*的作用其实是将jar包名与路径进行组合形成如:lib/google.jar这样的相对路径 |
|||
--> |
|||
<globmapper from="*" to="*" /> |
|||
</chainedmapper> |
|||
</mapper> |
|||
<!--按照mapper定义的格式组合lib目录下面的所有jar文件,形成诸如lib/jar1.jar lib/jar2.jar的字符串--> |
|||
<fileset dir="lib"> |
|||
<include name="*.jar" /> |
|||
</fileset> |
|||
</pathconvert> |
|||
|
|||
<!--组合各个路径,构成MANIFEST.MF文件中Class-Path所需的字符串--> |
|||
<property name="libs" value="${lib}" /> |
|||
|
|||
<!--打印一下刚才构造好的字符串,看看是否符合要求--> |
|||
<echo>libs ${libs}</echo> |
|||
|
|||
<!-- 构造打包时Class-Path需要的路径 结束--> |
|||
|
|||
<!--创建任务init,负责初始化一些条件--> |
|||
<target name="init"> |
|||
<!-- 创建存放编译后的class的目录 |
|||
mkdir可以创建多级目录 |
|||
--> |
|||
<mkdir dir="${classes}" /> |
|||
</target> |
|||
|
|||
<!--创建编译任务,名字是compile,depends指定了comiple任务依赖init任务--> |
|||
<target name="compile" depends="init" description="comile target"> |
|||
<!--javac,编译,对应java中的javac命令。 |
|||
其中srcdir定义源文件路径 destdir定义编译后文件路径, |
|||
includeantruntime作用是指定编译任务是否包含ant的classpath,可有可无,不影响编译, |
|||
但不写可能会出现警告,为了眼不见心不烦,加上吧--> |
|||
<javac srcdir="${src}" destdir="${classes}" includeantruntime="true"> |
|||
<!-- classpath 定义编译需要的claspath --> |
|||
<classpath> |
|||
<fileset dir="lib"> |
|||
<include name="*.jar" /> |
|||
</fileset> |
|||
</classpath> |
|||
</javac> |
|||
|
|||
<copy todir="${classes}"> |
|||
<fileset dir="${src}"> |
|||
<include name="**/*.properties"/> |
|||
<include name="**/*.xml"/> |
|||
</fileset> |
|||
</copy> |
|||
|
|||
</target> |
|||
|
|||
|
|||
<!-- 创建时间戳 --> |
|||
<tstamp /> |
|||
|
|||
<!--定义jarfilename,准备进行打包操作。其中ant.project.name是ant默认的一个变量,值为最上面定义的project的name |
|||
${DSTAMP}为日期,格式为20111123;${TSTAMP}为时间,格式为2256,表示22点56分。 |
|||
--> |
|||
<property name="jarfilename" value="./build/${ant.project.name}.jar" /> |
|||
<!--打包开始,名字为jar,依赖任务为compile--> |
|||
<target name="jar" depends="compile" description="make jar file"> |
|||
<!--jar操作,jarfile指定jar包存放路径,basedir为编译后的class的目录--> |
|||
<jar jarfile="${jarfilename}" basedir="${classes}"> |
|||
<!--为jar包指定manifest,当然,如果jar包不需要打成runnable的形式,manifest可以不要--> |
|||
<manifest> |
|||
<!--指定main-class--> |
|||
<attribute name="Main-Class" value="com.lexing.lsm.server.MinaServer" /> |
|||
<!--指定Class-Path--> |
|||
<attribute name="Class-Path" value="." /> |
|||
</manifest> |
|||
<fileset dir="bin" /> |
|||
<zipfileset excludes="META-INF/*.SF" src="./lib/commons-codec-1.4.jar" /> |
|||
<zipfileset excludes="META-INF/*.SF" src="./lib/commons-httpclient-3.0.jar" /> |
|||
<zipfileset excludes="META-INF/*.SF" src="./lib/commons-lang-2.6.jar" /> |
|||
<zipfileset excludes="META-INF/*.SF" src="./lib/commons-logging-1.1.1.jar" /> |
|||
<zipfileset excludes="META-INF/*.SF" src="./lib/jackson-core-asl-1.9.13.jar" /> |
|||
<zipfileset excludes="META-INF/*.SF" src="./lib/jackson-mapper-asl-1.9.13.jar" /> |
|||
<zipfileset excludes="META-INF/*.SF" src="./lib/log4j-1.2.16.jar" /> |
|||
<zipfileset excludes="META-INF/*.SF" src="./lib/mina-core-2.0.4.jar" /> |
|||
<zipfileset excludes="META-INF/*.SF" src="./lib/slf4j-api-1.5.11.jar" /> |
|||
<zipfileset excludes="META-INF/*.SF" src="./lib/slf4j-log4j12-1.5.11.jar" /> |
|||
</jar> |
|||
</target> |
|||
|
|||
<!--运行一下jar包,试试看效果--> |
|||
<target name="run" depends="jar"> |
|||
<!--其实这里就是运行jar命令,注意fork一定加上,不然不起作用--> |
|||
<java jar="${jarfilename}" fork="true"> |
|||
</java> |
|||
</target> |
|||
|
|||
|
|||
<!-- 清理 --> |
|||
<target name="clean"> |
|||
<!-- 可以以递归的方式删除目录 --> |
|||
<delete dir="${classes}" /> |
|||
<delete dir="." includes="${ant.project.name}*.jar" /> |
|||
</target> |
|||
</project> |
Binary file not shown.
@ -0,0 +1,16 @@ |
|||
# USER_KEY |
|||
iot.userKey=426aad8a150a4d85a8fa7221085edca3 |
|||
|
|||
#TCP SERVER PORT |
|||
iot.port=50001 |
|||
iot.url=http://127.0.0.1:8080/lpro |
|||
iot.lpm.key=qw3erfds3c4qq0856bf9b63f99529f |
|||
|
|||
#MQTT |
|||
iot.mqtt.host=tcp://127.0.0.1:1883 |
|||
iot.mqtt.userName=iot2yun |
|||
iot.mqtt.password=iot2yun |
|||
|
|||
#UDP----------- |
|||
iot.udp.switch=false |
|||
iot.udp.port=8000 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue