From 522200e7734236a8f9f01dfd3b25c19adaa598ce Mon Sep 17 00:00:00 2001 From: richie Date: Tue, 31 Jul 2018 19:32:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=92=E4=BB=B6=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/plugin-function/build.xml | 126 ++++++++++++++++++ .../plugin-function/build/assembly/zip.xml | 21 --- plugins/plugin-function/plugin.xml | 2 +- plugins/plugin-function/pom.xml | 24 ---- .../src/main/java/com/fr/plugin/MyAbs.java | 5 + 5 files changed, 132 insertions(+), 46 deletions(-) create mode 100644 plugins/plugin-function/build.xml delete mode 100644 plugins/plugin-function/build/assembly/zip.xml diff --git a/plugins/plugin-function/build.xml b/plugins/plugin-function/build.xml new file mode 100644 index 0000000..59ae0c1 --- /dev/null +++ b/plugins/plugin-function/build.xml @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/plugin-function/build/assembly/zip.xml b/plugins/plugin-function/build/assembly/zip.xml deleted file mode 100644 index 11da522..0000000 --- a/plugins/plugin-function/build/assembly/zip.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - Project.release - - zip - - true - - - target/classes - /bin - - - - - true - / - runtime - - - \ No newline at end of file diff --git a/plugins/plugin-function/plugin.xml b/plugins/plugin-function/plugin.xml index a7553ec..4816b1a 100644 --- a/plugins/plugin-function/plugin.xml +++ b/plugins/plugin-function/plugin.xml @@ -1,5 +1,5 @@ - com.fr.plugin.test + com.fr.plugin.function.test yes 1.0 diff --git a/plugins/plugin-function/pom.xml b/plugins/plugin-function/pom.xml index 5741a87..ada9db6 100644 --- a/plugins/plugin-function/pom.xml +++ b/plugins/plugin-function/pom.xml @@ -11,28 +11,4 @@ jar plugin-function - - - - org.apache.maven.plugins - maven-assembly-plugin - 2.5.4 - - - make-zip - install - - single - - - - - false - - build/assembly/zip.xml - - - - - \ No newline at end of file diff --git a/plugins/plugin-function/src/main/java/com/fr/plugin/MyAbs.java b/plugins/plugin-function/src/main/java/com/fr/plugin/MyAbs.java index 6e2b94a..78dab4c 100644 --- a/plugins/plugin-function/src/main/java/com/fr/plugin/MyAbs.java +++ b/plugins/plugin-function/src/main/java/com/fr/plugin/MyAbs.java @@ -2,12 +2,17 @@ package com.fr.plugin; import com.fr.general.FArray; import com.fr.general.GeneralUtils; +import com.fr.intelli.record.Focus; +import com.fr.intelli.record.Original; +import com.fr.record.analyzer.EnableMetrics; import com.fr.script.AbstractFunction; import com.fr.stable.ArrayUtils; import com.fr.stable.Primitive; +@EnableMetrics public class MyAbs extends AbstractFunction { + @Focus(id = "com.fr.plugin.function.test", text = "Function description", source = Original.PLUGIN) public Object run(Object[] args) { int len = ArrayUtils.getLength(args); if (len == 0) {