forked from phoedos/pmd
sourceforge access changes
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@6597 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
parent
68c1d53a59
commit
14461efefd
@ -427,11 +427,11 @@
|
||||
<target name="cpdjnlp" depends="dist" description="Uploads a new CPD JNLP thingy to the PMD web site">
|
||||
<signjar jar="${dir.lib}/pmd-${version}.jar" storetype="${keystore.type}" alias="${keystore.alias}" keystore="${keystore.path}" storepass="${keystore.password}" />
|
||||
<exec executable="scp" os="Linux">
|
||||
<arg line=" ${dir.lib}/pmd-${version}.jar pmd.sourceforge.net:/home/groups/p/pm/pmd/htdocs" />
|
||||
<arg line=" ${dir.lib}/pmd-${version}.jar ${user.name},pmd@web.sourceforge.net:/home/groups/p/pm/pmd/htdocs" />
|
||||
</exec>
|
||||
<echo message="Uploading cpd.jnlp" />
|
||||
<exec executable="scp" os="Linux">
|
||||
<arg line=" etc/cpd.jnlp pmd.sourceforge.net:/home/groups/p/pm/pmd/htdocs" />
|
||||
<arg line=" etc/cpd.jnlp ${user.name},pmd@web.sourceforge.net:/home/groups/p/pm/pmd/htdocs" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
|
23
pmd/docs.sh
23
pmd/docs.sh
@ -20,7 +20,7 @@ elif [ $option = "all" ]; then
|
||||
elif [ $option = "uploadcurrent" ]; then
|
||||
echo "Generating and uploading maven artifacts"
|
||||
mvn -q source:jar javadoc:jar deploy
|
||||
mvn -q deploy:deploy-file -Durl=scp://pmd.sourceforge.net/home/groups/p/pm/pmd/htdocs/maven2 -DrepositoryId=pmd-repo -Dfile=java14/lib/pmd14-4.2.4.jar -DpomFile=pmd-jdk14-pom.xml
|
||||
mvn -q deploy:deploy-file -Durl=scp://web.sourceforge.net/home/groups/p/pm/pmd/htdocs/maven2 -DrepositoryId=pmd-repo -Dfile=java14/lib/pmd14-4.2.4.jar -DpomFile=pmd-jdk14-pom.xml
|
||||
echo "Generating xdocs and uploading"
|
||||
ruby munge_rulesets.rb
|
||||
maven -qb pmd:rulesets-index xdoc:generate-from-pom
|
||||
@ -30,26 +30,19 @@ elif [ $option = "uploadcurrent" ]; then
|
||||
maven -qb xdoc:transform
|
||||
DOCS_FILE=docs.tar.gz
|
||||
cp xdocs/cpdresults.txt xdocs/cpp_cpdresults.txt target/docs/
|
||||
cd target
|
||||
rm -f $DOCS_FILE
|
||||
tar zcf $DOCS_FILE docs/
|
||||
scp $DOCS_FILE pmd.sourceforge.net:/home/groups/p/pm/pmd/htdocs/current/
|
||||
cd ../
|
||||
ssh pmd.sourceforge.net "cd /home/groups/p/pm/pmd/htdocs/current/ && tar -zxf docs.tar.gz && cp -R docs/* . && rm -rf docs && rm docs.tar.gz"
|
||||
cd target/docs
|
||||
rsync -a -e ssh * $USER,pmd@web.sourceforge.net:/home/groups/p/pm/pmd/htdocs
|
||||
cd ../..
|
||||
elif [ $option = "upload" ]; then
|
||||
echo "Generating and uploading maven artifacts"
|
||||
mvn -q source:jar javadoc:jar deploy
|
||||
mvn -q deploy:deploy-file -Durl=scp://pmd.sourceforge.net/home/groups/p/pm/pmd/htdocs/maven2 -DrepositoryId=pmd-repo -Dfile=java14/lib/pmd14-4.2.4.jar -DpomFile=pmd-jdk14-pom.xml
|
||||
mvn -q deploy:deploy-file -Durl=scp://web.sourceforge.net/home/groups/p/pm/pmd/htdocs/maven2 -DrepositoryId=pmd-repo -Dfile=java14/lib/pmd14-4.2.4.jar -DpomFile=pmd-jdk14-pom.xml
|
||||
echo "Uploading xdocs"
|
||||
DOCS_FILE=docs.tar.gz
|
||||
cp xdocs/cpdresults.txt xdocs/cpp_cpdresults.txt target/docs/
|
||||
cd target
|
||||
rm -f $DOCS_FILE
|
||||
tar zcf $DOCS_FILE docs/
|
||||
echo "Starting secure copy"
|
||||
scp $DOCS_FILE pmd.sourceforge.net:/home/groups/p/pm/pmd/
|
||||
cd ../
|
||||
ssh pmd.sourceforge.net "cd /home/groups/p/pm/pmd/ && rm -rf xref && rm -rf apidocs && ./update_docs.sh"
|
||||
cd target/docs
|
||||
rsync -a -e ssh * $USER,pmd@web.sourceforge.net:/home/groups/p/pm/pmd/htdocs
|
||||
cd ../..
|
||||
fi
|
||||
if [ -e velocity.log ]; then
|
||||
rm velocity.log
|
||||
|
@ -289,12 +289,12 @@
|
||||
<repository>
|
||||
<id>pmd-repo</id>
|
||||
<name>Default Repository</name>
|
||||
<url>scp://pmd.sourceforge.net/home/groups/p/pm/pmd/htdocs/maven2</url>
|
||||
<url>scp://web.sourceforge.net/home/groups/p/pm/pmd/htdocs/maven2</url>
|
||||
</repository>
|
||||
<site>
|
||||
<id>pmd-site</id>
|
||||
<name>Default Site</name>
|
||||
<url>scp://pmd.sourceforge.net/home/groups/p/pm/pmd/htdocs</url>
|
||||
<url>scp://web.sourceforge.net/home/groups/p/pm/pmd/htdocs</url>
|
||||
</site>
|
||||
</distributionManagement>
|
||||
|
||||
|
@ -279,12 +279,12 @@
|
||||
<repository>
|
||||
<id>pmd-repo</id>
|
||||
<name>Default Repository</name>
|
||||
<url>scp://pmd.sourceforge.net/home/groups/p/pm/pmd/htdocs/maven2</url>
|
||||
<url>scp://web.sourceforge.net/home/groups/p/pm/pmd/htdocs/maven2</url>
|
||||
</repository>
|
||||
<site>
|
||||
<id>pmd-site</id>
|
||||
<name>Default Site</name>
|
||||
<url>scp://pmd.sourceforge.net/home/groups/p/pm/pmd/htdocs</url>
|
||||
<url>scp://web.sourceforge.net/home/groups/p/pm/pmd/htdocs</url>
|
||||
</site>
|
||||
</distributionManagement>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user