From 13ff6599513565a4a8b963bfa11e56d81bf972b1 Mon Sep 17 00:00:00 2001 From: richie Date: Fri, 19 Oct 2018 16:09:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +- plugin-formula-script | 1 + plugin-function/build.xml | 126 ------------------ plugin-function/plugin.xml | 18 --- plugin-function/pom.xml | 28 ---- .../src/main/java/com/fr/plugin/MyAbs.java | 30 ----- plugin-iframe | 1 - pom.xml | 9 ++ 8 files changed, 12 insertions(+), 204 deletions(-) create mode 160000 plugin-formula-script delete mode 100644 plugin-function/build.xml delete mode 100644 plugin-function/plugin.xml delete mode 100644 plugin-function/pom.xml delete mode 100644 plugin-function/src/main/java/com/fr/plugin/MyAbs.java delete mode 160000 plugin-iframe diff --git a/.gitignore b/.gitignore index 3a2d861..1bf50a6 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ .idea/ /target/ /download/ -/webroot/ \ No newline at end of file +/webroot/ +.DS_Store \ No newline at end of file diff --git a/plugin-formula-script b/plugin-formula-script new file mode 160000 index 0000000..6788064 --- /dev/null +++ b/plugin-formula-script @@ -0,0 +1 @@ +Subproject commit 6788064856d8fd8af5a91cea5773d601d5b8cb94 diff --git a/plugin-function/build.xml b/plugin-function/build.xml deleted file mode 100644 index 59ae0c1..0000000 --- a/plugin-function/build.xml +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugin-function/plugin.xml b/plugin-function/plugin.xml deleted file mode 100644 index d7c1db9..0000000 --- a/plugin-function/plugin.xml +++ /dev/null @@ -1,18 +0,0 @@ - - com.fr.plugin.function.test - - yes - 1.0 - 10.0 - 2018-07-31 - author - - - [2018-07-31]初始化插件。
- ]]>
- - - - -
\ No newline at end of file diff --git a/plugin-function/pom.xml b/plugin-function/pom.xml deleted file mode 100644 index e8d28af..0000000 --- a/plugin-function/pom.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - 4.0.0 - - - com.fr.plugin - starter - 10.0 - - - jar - plugin-function - - - com.fr.plugin - gson - 1.0 - system - ${project.basedir}/lib/gson-2.3.1.jar - - - - - ${project.basedir}/../webroot/WEB-INF/plugins/plugin-com.fr.plugin.function.test-1.0/classes - - \ No newline at end of file diff --git a/plugin-function/src/main/java/com/fr/plugin/MyAbs.java b/plugin-function/src/main/java/com/fr/plugin/MyAbs.java deleted file mode 100644 index 78dab4c..0000000 --- a/plugin-function/src/main/java/com/fr/plugin/MyAbs.java +++ /dev/null @@ -1,30 +0,0 @@ -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) { - return Primitive.ERROR_VALUE; - } else if (len == 1) { - return Math.abs(GeneralUtils.objectToNumber(args[0]).doubleValue()); - } else { - FArray result = new FArray(); - for (Object arg : args) { - result.add(GeneralUtils.objectToNumber(arg).doubleValue()); - } - } - return Primitive.ERROR_VALUE; - } -} diff --git a/plugin-iframe b/plugin-iframe deleted file mode 160000 index f77aab6..0000000 --- a/plugin-iframe +++ /dev/null @@ -1 +0,0 @@ -Subproject commit f77aab6afd9bfbcf73b29100e6934feffc263832 diff --git a/pom.xml b/pom.xml index 4c4df1a..257a177 100644 --- a/pom.xml +++ b/pom.xml @@ -11,8 +11,17 @@ plugin-function + plugin-formula-script + plugin-iframe + + + jdk.tools + tools + 1.8 + ${JAVA_HOME}/lib/tools.jar + com.fr.third