summaryrefslogtreecommitdiff
path: root/bean
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2015-12-01 23:59:11 +0100
committerAndras Timar <andras.timar@collabora.com>2016-02-02 14:20:18 +0100
commite537a5e93dd86829279d92a1c4ec7861fe8676c3 (patch)
tree1f55f043fbdcfbdddcecb6a7cc820ac8e56a0efb /bean
parenta71662839b67b4a08f02ddf9ee00385a21d10881 (diff)
Add build toolchain to upload LibreOffice API to Maven Central
Set up the toolchain to create sources and javadocs artifacts in addition to JARs created during the build. Use Buck build tool for that: [1]. This is a fork of Google's build tool Blaze, created by Xooglers at Facebook. This build tool (like Blaze itself) uses Python to write build files. Add needed tools and build files to install LibreOffice API artifacts to local Maven repository or deploy them to Maven Central. To build all needed artifacts LibreOffice must be built regularly with GNU make first. To build the rest of the API (sources and javadocs): $> buck build api To replace version number with upcoming release version: $> solenv/bin/version.py 5.1.0 To install the API to local Maven repository: $> buck build api_install To deploy the API to Maven Central: $> buck build api_deploy Detailed documentation is added to document the prerequisites and the workflow to upload LibreOffice API to Maven Central. * [1] https://buckbuild.com Change-Id: Ibdd552a01110836703bc069abe829b9921491cac Reviewed-on: https://gerrit.libreoffice.org/20343 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> (cherry picked from commit 1fd41f43eb73c373cb94d32d82c5fb7a7e243367) Reviewed-on: https://gerrit.libreoffice.org/20814 Reviewed-by: David Ostrovsky <david@ostrovsky.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk> (cherry picked from commit 95fe7d0a68c230df13c80dd8759f86d635c48101)
Diffstat (limited to 'bean')
-rw-r--r--bean/BUCK23
-rw-r--r--bean/com/sun/star/comp/beans/LocalOfficeWindow.java2
-rw-r--r--bean/com/sun/star/comp/beans/OOoBean.java24
3 files changed, 35 insertions, 14 deletions
diff --git a/bean/BUCK b/bean/BUCK
new file mode 100644
index 000000000000..94a235b0a87a
--- /dev/null
+++ b/bean/BUCK
@@ -0,0 +1,23 @@
+
+java_sources(
+ name = 'officebean-src',
+ srcs = glob(['com/**']),
+ visibility = ['PUBLIC'],
+)
+
+java_doc(
+ name = 'officebean-javadoc',
+ title = 'LibreOffice API',
+ pkgs = [
+ 'com.sun.star.comp.beans',
+ ],
+ paths = ['.'],
+ srcs = glob(['com/**']),
+ deps = [
+ '//:juh',
+ '//:officebean',
+ '//:unoil',
+ '//:ridl',
+ ],
+ visibility = ['PUBLIC'],
+)
diff --git a/bean/com/sun/star/comp/beans/LocalOfficeWindow.java b/bean/com/sun/star/comp/beans/LocalOfficeWindow.java
index b8b493e5f94b..73c2b71720b9 100644
--- a/bean/com/sun/star/comp/beans/LocalOfficeWindow.java
+++ b/bean/com/sun/star/comp/beans/LocalOfficeWindow.java
@@ -91,7 +91,7 @@ public class LocalOfficeWindow
* Receives a notification about the connection has been closed.
* This method has to set the connection to <code>null</code>.
*
- * @source The event object.
+ * @param source The event object.
*/
public void disposing(EventObject source)
{
diff --git a/bean/com/sun/star/comp/beans/OOoBean.java b/bean/com/sun/star/comp/beans/OOoBean.java
index 36d622dc3b7b..aa97c6e1bace 100644
--- a/bean/com/sun/star/comp/beans/OOoBean.java
+++ b/bean/com/sun/star/comp/beans/OOoBean.java
@@ -23,11 +23,9 @@ import com.sun.star.uno.UnoRuntime;
// @requirement FUNC.PERF.LRN/0.6
// @requirement FUNC.PERF.LOC/0.6
// @requirement FUNC.PERF.FIX/0.6
+// @requirement FUNC.RES.OTH/0.2
+// No other resources are needed yet.
/** This is the basic JavaBean for all OOo application modules.
-
- @requirement FUNC.RES.OTH/0.2
- No other resources are needed yet.
-
@since OOo 2.0.0
*/
public class OOoBean
@@ -80,7 +78,8 @@ public class OOoBean
}
// @requirement FUNC.PER/0.2
- /** @internal
+ // @internal
+ /**
*/
@Deprecated
public void writeExternal( java.io.ObjectOutput aObjOut )
@@ -89,7 +88,8 @@ public class OOoBean
}
// @requirement FUNC.PER/0.2
- /** @internal
+ // @internal
+ /**
*/
@Deprecated
public void readExternal( java.io.ObjectInput aObjIn )
@@ -155,9 +155,8 @@ public class OOoBean
nOOoCheckCycle = nMilliSecs;
}
+ // @internal
/** Sets a connection to an OOo instance.
-
- @internal
*/
private synchronized void setOOoConnection(OfficeConnection iNewConnection)
throws HasConnectionException, NoConnectionException {
@@ -927,7 +926,7 @@ public class OOoBean
/** returns the <type scope="com::sun::star::frame">Frame</a>
of the bean.
- @returns
+ @return
a Java class which implements all interfaces which the service
<type scope="com::sun::star::frame">Frame</a> implements.
Thus, methods can be called directly without queryInterface.
@@ -950,7 +949,7 @@ public class OOoBean
// @requirement API.SIM.SEAP/0.2
/** returns the <type scope="com::sun::star::frame::Controller"> of the bean.
- @returns
+ @return
a Java class which implements all interfaces which the service
<type scope="com::sun::star::frame">Controller</a> implements.
Thus, methods can be called directly without queryInterface.
@@ -978,7 +977,7 @@ public class OOoBean
/** returns the <type scope="com::sun::star::document::OfficeDocument">
of the bean.
- @returns
+ @return
a Java class which implements all interfaces which the service
<type scope="com::sun::star::document">OfficeDocument</a>
implements.
@@ -1363,10 +1362,9 @@ xLayoutManager.showElement("private:resource/menubar/menubar");
// Helper Classes
-
+ // @internal
/** Helper class to listen on the connection to learn when it dies.
- @internal
*/
private class EventListener
extends Thread