This repository has been archived by the owner on Aug 29, 2022. It is now read-only.
forked from iPaulPro/aFileChooser
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Maven-Deploy.cmd
45 lines (38 loc) · 1.61 KB
/
Maven-Deploy.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
::#!
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: {{{1 :::::::^::::
:: Copyright © 2013 Martin Krischik
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: $Author$
:: $Revision$
:: $Date$
:: $Id$
:: $HeadURL$
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: }}}1 :::::::::::
@ECHO OFF
SETLOCAL
SET PATH=%PATH%;C:\opt\Git\bin
SET PATH=%PATH%;C:\opt\Scala\2.10.0\bin
SET Scala_Library="${WORK}/Repositories/Local/net/sourceforge/uiq3/Calculator-Script/${CALCULATOR_VERSION}/Calculator-Script-${CALCULATOR_VERSION}.jar"
PUSHD "AndroidAnnotations"
CALL scala -classpath %Scala_Library% -save ..\Maven-Deploy.cm %*
POPD
ENDLOCAL
GOTO :eof
::!#
import scala.sys.process._
import net.sourceforge.uiq3.Maven.mvn
import net.sourceforge.uiq3.Shell.Err_Exit_Call
val Maven_Deploy = System.getenv ("MAVEN_DEPLOY")
val Project_Name = System.getenv ("PROJECT_NAME")
val Maven_Name = Project_Name +" Maven Repository"
Err_Exit_Call (mvn ::: "--activate-profiles" :: "release" :: "clean" :: Nil)
Err_Exit_Call (mvn ::: "--activate-profiles" :: "release" :: "install" :: Nil)
Err_Exit_Call (mvn ::: "--activate-profiles" :: "release" :: "javadoc:javadoc" :: Nil)
Err_Exit_Call (mvn ::: "--activate-profiles" :: "release" :: "source:jar" :: Nil)
Err_Exit_Call (mvn :::
"--define" :: "repo.id=" + Project_Name ::
"--define" :: "repo.name=" + Maven_Name ::
"--define" :: "repo.url=" + Maven_Deploy ::
"deploy" :: Nil )
// vim: set wrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab :
// vim: set textwidth=0 filetype=scala foldmethod=marker nospell :