Skip to content

Commit

Permalink
LPS-9813
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.liferay.com/repos/public/portal/trunk@53520 05bdf26c-840f-0410-9ced-eb539d925f36
  • Loading branch information
tmoreira2020 committed May 22, 2010
1 parent 0cbbae1 commit ea59f2b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build-common-java.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,11 @@
<target name="deploy" depends="jar">
<copy file="${jar.file}.jar" todir="${deploy.dir}" />
</target>

<target name="sources-jar">
<jar
basedir="src"
jarfile="${jar.file}-sources.jar"
/>
</target>
</project>
21 changes: 21 additions & 0 deletions build-maven.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,17 @@
<arg value="-Durl=${maven.url}" />
<arg value="-Dversion=${maven.version}" />
</exec>
<exec dir="." executable="${maven.executable}" failonerror="true">
<arg value="deploy:deploy-file" />
<arg value="-DartifactId=${artifact.id}" />
<arg value="-Dfile=${artifact.id}/${artifact.id}-sources.${packaging}" />
<arg value="-DgeneratePom=false" />
<arg value="-DgroupId=com.liferay.portal" />
<arg value="-Dpackaging=java-source" />
<arg value="-DrepositoryId=${maven.repository.id}" />
<arg value="-Durl=${maven.url}" />
<arg value="-Dversion=${maven.version}" />
</exec>
</then>
</if>

Expand Down Expand Up @@ -122,6 +133,7 @@

<target name="deploy-release-artifacts">
<antcall target="javadoc-jar" />
<antcall target="sources-jar" />
<antcall target="deploy-artifacts">
<param name="maven.repository.id" value="sonatype-staging" />
<param name="maven.url" value="http://oss.sonatype.org/service/local/staging/deploy/maven2" />
Expand Down Expand Up @@ -244,4 +256,13 @@
<ant dir="util-taglib" target="javadoc" inheritAll="false" />
<ant dir="util-taglib" target="javadoc-jar" inheritAll="false" />
</target>

<target name="sources-jar">
<ant dir="portal-client" target="sources-jar" inheritAll="false" />
<ant dir="portal-impl" target="sources-jar" inheritAll="false" />
<ant dir="portal-service" target="sources-jar" inheritAll="false" />
<ant dir="util-bridges" target="sources-jar" inheritAll="false" />
<ant dir="util-java" target="sources-jar" inheritAll="false" />
<ant dir="util-taglib" target="sources-jar" inheritAll="false" />
</target>
</project>
8 changes: 8 additions & 0 deletions portal-client/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,12 @@

<antcall target="jar" />
</target>

<target name="sources-jar">
<jar
basedir="src"
excludes="**/*.class"
jarfile="${jar.file}-sources.jar"
/>
</target>
</project>

0 comments on commit ea59f2b

Please sign in to comment.