| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,7 @@ | |||
| 1 | + package org.fedoraproject.example; | ||
| 2 | + | ||
| 3 | + public class Main2 { | ||
| 4 | + public static void main(String[] args) { | ||
| 5 | + Main.main(args); | ||
| 6 | + } | ||
| 7 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,18 @@ | |||
| 1 | + <project xmlns:ivy="antlib:org.apache.ivy.ant" name="hello-ivy" default="run"> | ||
| 2 | + <path id="lib.path.id"> | ||
| 3 | + <fileset dir="lib" /> | ||
| 4 | + </path> | ||
| 5 | + <target name="resolve"> | ||
| 6 | + <ivy:retrieve /> | ||
| 7 | + </target> | ||
| 8 | + <target name="compile" depends="resolve"> | ||
| 9 | + <mkdir dir="target" /> | ||
| 10 | + <javac srcdir="src" destdir="target" classpathref="lib.path.id" includeAntRuntime="false"/> | ||
| 11 | + <jar destfile="ivy-publish.jar" basedir="target"/> | ||
| 12 | + </target> | ||
| 13 | + <target name="publish-local" depends="compile"> | ||
| 14 | + <ivy:publish resolver="local" pubrevision="1.0.0" forcedeliver="true"> | ||
| 15 | + <artifacts pattern="[artifact].[ext]"/> | ||
| 16 | + </ivy:publish> | ||
| 17 | + </target> | ||
| 18 | + </project> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,41 @@ | |||
| 1 | + %{?scl:%scl_package ivy-publish} | ||
| 2 | + %{!?scl:%global pkg_name %{name}} | ||
| 3 | + | ||
| 4 | + Name: %{?scl_prefix}ivy-publish | ||
| 5 | + Version: 1.0.0 | ||
| 6 | + Release: 1%{?dist} | ||
| 7 | + Summary: Example ivy project | ||
| 8 | + License: BSD | ||
| 9 | + Source0: ivy.xml | ||
| 10 | + Source1: build.xml | ||
| 11 | + Source2: Main2.java | ||
| 12 | + BuildArch: noarch | ||
| 13 | + | ||
| 14 | + BuildRequires: %{?scl_prefix_java_common}ivy-local | ||
| 15 | + BuildRequires: %{?scl_prefix_java_common}ant | ||
| 16 | + BuildRequires: %{?scl_prefix}mvn(org.fedoraproject.example:ivy-baz) | ||
| 17 | + | ||
| 18 | + %description | ||
| 19 | + %{summary}. | ||
| 20 | + | ||
| 21 | + %prep | ||
| 22 | + %setup -q -T -c %{pkg_name} | ||
| 23 | + | ||
| 24 | + cp -p %{SOURCE0} ivy.xml | ||
| 25 | + cp -p %{SOURCE1} build.xml | ||
| 26 | + mkdir -p src/org/fedoraproject/example | ||
| 27 | + cp -p %{SOURCE2} src/org/fedoraproject/example/ | ||
| 28 | + | ||
| 29 | + %pom_xpath_set ivy:publish/@resolver xmvn build.xml | ||
| 30 | + | ||
| 31 | + %build | ||
| 32 | + %ant -Divy.mode=local publish-local | ||
| 33 | + | ||
| 34 | + %install | ||
| 35 | + %mvn_install | ||
| 36 | + | ||
| 37 | + %files -f .mfiles | ||
| 38 | + | ||
| 39 | + %changelog | ||
| 40 | + * Fri May 19 2017 Michael Simacek <msimacek@redhat.com> - 1.0.0-1 | ||
| 41 | + - Initial version | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,6 @@ | |||
| 1 | + <ivy-module version="2.0"> | ||
| 2 | + <info organisation="org.fedoraproject.example" module="ivy-publish" revision="1.0.0"/> | ||
| 3 | + <dependencies> | ||
| 4 | + <dependency org="org.fedoraproject.example" name="ivy-baz" rev="1.0.0"/> | ||
| 5 | + </dependencies> | ||
| 6 | + </ivy-module> | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments