提交 f58f99d0 编写于 作者: H hot13399

commit

上级 c5890dde
Edit conf files:
companyname-oss-mocr\src\main\webapp\WEB-INF\spring\appServlet\servlet-context.xml:<context:property-placeholder location="file:/opt/web/companyname-projectname-mocr/resources/application.properties"/>
companyname-oss-mocr\src\main\resources\logback.xml
companyname-oss-mocr\resources\application.properties
/user/local/tomcat7/apache-tomcat-7.0.57/webapps
/opt/web/companyname-projectname-mocr
This application is a project using Spring MVC.
To run the application:
-------------------
......@@ -18,14 +9,24 @@ From the command line with Maven:
or
In your preferred IDE such as SpringSource Tool Suite (STS) or IDEA:
In your preferred IDE such as Eclipse:
$ cd companyname-projectname-mocr
$ mvn eclipse:eclipse
* Import companyname-projectname-mocr as a Maven Project
* Drag-n-drop the project onto the "SpringSource tc Server Developer Edition" or another Servlet 2.5 or > Server to run, such as Tomcat.
Access the deployed web application at: http://localhost:8080/companyname-projectname-mocr
Note:
-------------------
If you want to deploy this project to Linux server, you might need to edit conf files:
companyname-oss-mocr\src\main\webapp\WEB-INF\spring\appServlet\servlet-context.xml:<context:property-placeholder location="file:/opt/web/companyname-projectname-mocr/resources/application.properties"/>
companyname-oss-mocr\src\main\resources\logback.xml
companyname-oss-mocr\resources\application.properties
/user/local/tomcat7/apache-tomcat-7.0.57/webapps
/opt/web/companyname-projectname-mocr
mail.starttls.enable=true
mail.auth=true
mail.host=dhn-mailrelay.emea.nsn-intra.net
mail.host=mail.server.host
mail.port=25
mail.to=jerry.1.zhang@nsn.com
mail.to=hot13399@163.com
svn.rep.url=https://svne1.access.nsn.com/isource/svnroot/mocrrepository
svn.username=n2zhang
svn.rep.url=svn repo link
svn.username=testuser
svn.password=companyname125
path.rep=resources/svn_temp
path.xml=resources/svn_temp/objectclasses.xml
path.json=resources/svn_temp/morstatus.json
web.hostname=cspbj.emea.nsn-net.net
web.hostname=localhost
mail.starttls.enable=true
mail.auth=true
mail.host=dhn-mailrelay.emea.nsn-intra.net
mail.host=mail.server.host
mail.port=25
mail.to=jerry.1.zhang@nsn.com
mail.to=hot13399@163.com
svn.rep.url=https://svne1.access.nsn.com/isource/svnroot/mocrrepository
svn.username=n2zhang
svn.rep.url=svn repo link
svn.username=testuser
svn.password=companyname125
path.rep=/opt/web/companyname-projectname-mocr/resources/svn_temp
path.xml=/opt/web/companyname-projectname-mocr/resources/svn_temp/objectclasses.xml
path.json=/opt/web/companyname-projectname-mocr/resources/svn_temp/morstatus.json
web.hostname=cspbj.emea.nsn-net.net
web.hostname=localhost
12
\ No newline at end of file
#!/bin/sh
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
echo "<objectclasses>"
while read line; do
if [[ $line == *"#"* ]]
then
echo "<!-- $line -->"
else
if [ ! -z "$line" ]
then
echo $line| sed -e "s/(objclass */<objclass id=/g" | sed -e "s/intclass */intclass=/g" | sed -e "s/abbrev */abbrev=/g" | sed -e "s/adaID */adaID=/g"| sed -e "s/name */name=/g" | sed -e "s/parents */parents=/g" | sed -e "s/^)/\/>/g"| tr -d "()"
fi
fi
done < "objectclasses.cf"
echo "</objectclasses>"
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2013 sp1 (x64) (http://www.altova.com) by NSN (companyname Solutions & Networks OY) -->
<!--W3C Schema generated by XMLSpy v2013 sp1 (x64) (http://www.altova.com)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="objectclasses" type="Objectclasses"/>
<xs:complexType name="Objectclass">
<xs:attribute name="id" type="xs:string" use="required"/>
<xs:attribute name="abbrev" type="xs:string" use="required"/>
<xs:attribute name="intclass" type="xs:int" use="required"/>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="adaID" type="xs:string"/>
<xs:attribute name="parents" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="Objectclasses" mixed="true">
<xs:sequence>
<xs:element name="objclass" type="Objectclass" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
objectclasses.cf is the old file which to track MOCR history.
objectclasses.xml is new file to track MOCR history now.
objectclasses.xsd is the schema file to validate objectclasses.xml.
objclass2xml_v2.sh is the script file to convert objectclasses.cf to objectclasses.xml.
\ No newline at end of file
{"mrsl":[{"mocrId":595,"submitDate":1421044926838,"commitDate":1421222183926,"holdDate":null,"ojbclslisttype":{"objectclasslist":[{"id":"RUAP_OBJECT_CLASS","intclass":5038,"abbrev":"RUAP","adaID":"MADSWF","name":"RUAP","parents":"RUSCG_OBJECT_CLASS","comment":"vipin.1.sivaraman@nsn.com 2015.1.10 MO CR 595"}]},"userinfo":{"username":null,"email":"vipin.1.sivaraman@nsn.com","password":null},"status":"commited","comments":null}]}
\ No newline at end of file
{"mrsl":[{"mocrId":595,"submitDate":null,"commitDate":1421044926838,"holdDate":null,"ojbclslisttype":{"objectclasslist":[{"id":"RUAP_OBJECT_CLASS","intclass":5038,"abbrev":"RUAP","adaID":"MADSWF","name":"RUAP","parents":"RUSCG_OBJECT_CLASS","comment":"vipin.1.sivaraman@nsn.com 2015.1.10 MO CR 595"}]},"userinfo":{"username":null,"email":"vipin.1.sivaraman@nsn.com","password":null},"status":"ongoing","comments":null},{"mocrId":596,"submitDate":1421138763228,"commitDate":null,"holdDate":null,"ojbclslisttype":{"objectclasslist":[{"id":"LBO_OBJECT_CLASS","intclass":5039,"abbrev":"LBO","adaID":"com.nsn.lbo","name":"Local Break-out ","parents":"RACSGEN_OBJECT_CLASS","comment":"# jerry.1.zhang@nsn.com 2015.01.13 MO CR 596"}]},"userinfo":{"username":"n2zhang","email":"jerry.1.zhang@nsn.com","password":"companyname125"},"status":"ongoing","comments":null}]}
\ No newline at end of file
{"mrsl":[{"mocrId":595,"submitDate":null,"commitDate":1421044926838,"holdDate":null,"ojbclslisttype":{"objectclasslist":[{"id":"RUAP_OBJECT_CLASS","intclass":5038,"abbrev":"RUAP","adaID":"MADSWF","name":"RUAP","parents":"RUSCG_OBJECT_CLASS","comment":"vipin.1.sivaraman@nsn.com 2015.1.10 MO CR 595"}]},"userinfo":{"username":null,"email":"vipin.1.sivaraman@nsn.com","password":null},"status":"ongoing","comments":null}]}
\ No newline at end of file
......@@ -6,8 +6,8 @@
</appender>
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>/opt/web/companyname-projectname-mocr/log/oss_activity0_0.log</file>
<!--<file>oss_activity0_0.log</file> -->
<!--<file>/opt/web/companyname-projectname-mocr/log/activity0_0.log</file>-->
<file>activity0_0.log</file>
<append>true</append>
<encoder>
<pattern>%d{YYYY/MM/dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n</pattern>
......
......@@ -15,8 +15,8 @@
<context:annotation-config/>
<context:component-scan base-package="com.companyname.projectname.mocr" />
<context:property-placeholder location="file:/opt/web/companyname-projectname-mocr/resources/application.properties"/>
<!--<context:property-placeholder location="file:resources/application.properties"/>-->
<!--<context:property-placeholder location="file:/opt/web/companyname-projectname-mocr/resources/application.properties"/>-->
<context:property-placeholder location="file:resources/application.properties"/>
<!-- Enables the Spring MVC @Controller programming model -->
<annotation-driven conversion-service="conversionService">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册