From 274285321881538515259a53df6597436cd70d9d Mon Sep 17 00:00:00 2001 From: "Zhenfei.Li" Date: Fri, 16 Oct 2020 13:55:37 +0800 Subject: [PATCH] init --- README.md | 16 ++++++++++++++- build.xml | 4 ++-- fr-plugin-pack-request-0.0.1.zip | Bin 0 -> 4369 bytes plugin.xml | 19 ++---------------- .../java/com/fr/plugin/pack/ReportBridge.java | 2 ++ .../java/com/fr/plugin/pack/ReportDef.java | 2 +- .../resources/com/fr/plugin/pack/report.js | 2 +- 7 files changed, 23 insertions(+), 22 deletions(-) create mode 100644 fr-plugin-pack-request-0.0.1.zip diff --git a/README.md b/README.md index a656ed2..932bc3e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,16 @@ ### 插件调试环境搭建 -1. \ No newline at end of file +1. clone仓库到BI仓库同级目录,编辑nuclear-maven的pom.xml,引用插件目录 +![企业微信截图_6fc59751-44ef-4edc-87c9-50cdf55446dc.png](https://upload-images.jianshu.io/upload_images/4968021-00eb069a3643dbaa.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) + +2. 在工程目录的WEB-INF的plugins文件夹下新建如图文件夹,将工程中的plugin.xml复制过去(或者直接安装根目录中打包好的zip插件,会自动建这样的文件夹) +![企业微信截图_474e2f8b-cbe9-418e-b78a-7ca959dd11bf.png](https://upload-images.jianshu.io/upload_images/4968021-fab0e6337b93feae.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) + +3. 修改插件pom中的output,改成工程中插件文件夹的classes即可。 +![企业微信截图_9f29fc43-b522-479a-81b9-0328437593e9.png](https://upload-images.jianshu.io/upload_images/4968021-c04479609de5a404.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) +4. 正常build,起工程,断点调试 +### 打包插件 +1. 修改build.xml的jdk.home和classes +![image.png](https://upload-images.jianshu.io/upload_images/4968021-364bdcc061f6007e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) +2. idea的ant直接添加工程中的build.xml即可 +![image.png](https://upload-images.jianshu.io/upload_images/4968021-510012c5932a1e6f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) +3. build后会生成classes,然后直接打包即可 \ No newline at end of file diff --git a/build.xml b/build.xml index 5f13422..ece99a0 100644 --- a/build.xml +++ b/build.xml @@ -7,12 +7,12 @@ - + - + diff --git a/fr-plugin-pack-request-0.0.1.zip b/fr-plugin-pack-request-0.0.1.zip new file mode 100644 index 0000000000000000000000000000000000000000..1d88f8267381ad54eefbe8b8a522327e8ede354a GIT binary patch literal 4369 zcmai2Wl$WJ6A-DyX0D}d059G|4*UE zavnt=5vS`TII~3iu*g0_SD0rxAC_jh2aSNE#2|$XIg6mHdty6Dq&RS$Gd2#+=vI5|5Y*f0mr`J`9S3LOchQ zdVy+)>6qXy)6%yR*GfQ~W)!aT+(75z4W;EB-9+@;tJ-UIYG@elB7-FU7`RPJ04pR! zv|!h%CXz@xEg#{5+Xso5;tc0`c8BVaf*@TUd=SG0;Cp6eCf0$tR9S-JzWo;HUObX` zalS-HCa*>*vO`;4(ONw!VQxIiNu}y!y3mLOaq?=Aw*+)40s(h^WV?FJW(ZMY#383+ zxfy9Z^!OOF@qH@TM-IW|M#rpR;`o)~+0J1vSEL|$cXIqNZa43g<;FmzsGGQ`*O$DI zm4t>5BNxjL3AV8oCz_~7p`qk7QE?UEUz<0Mfy;#@^c>Bv)wA$mG}EH79%A~Pz%eE@ zo2G-^zG?9pmXYXU+Cypqas^VtD>Rd0f z3f&^~OF1ffXtTwYC3H3{lV_U3kkoyV7mH-lfA-;L|JA$qnKr*raVE7k#0kWtLETrW z?PGl2I!2w-RUi!bQ>|Jo*oKggyQ?Xp4?jbz$MI{@6YT*fr%BZgFjul2SxmkwUkj;J z+gmS9dd;>u;Y7Rc%U8Q4i~64!duPonhx5VVeyaRYuu>c*L-vPe7?2VdF0FHrThOrs zO&MApe$IM(5f^b8xcwe{;q|nXHW#v=>Bbx+*`Rgdk$_O-RP+!P0-WBb?7w_9=U?0r zb4+=oS!M-(uF;dPvw`Cm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O4z@v}f|8Y9qV9FIaD%6K~45;xA8 zws-8UK8#%eYNafV8s^6c5wuhRk4ln}oiXLOHjdj+kBX*5hloKOvl?Q;zzc*Qm2#0{ z4XU?YH34K-0TW_IH>zB4?RoovI%e4z4zS>*~B384rJh-EMeqrVTIYL{}unNYE zk+Y(W2Rsjn=NN>l$VrBC&R#-N!V&p0{}6N4!Z<7d&_a*+-4)VIx;>iLXpu}T`yp!tW0(ajLO z8x6W&`p@LD)b23Vm4HaZ$p63N|Lgzo0Y{RL(ck&>KmPx}rT(u8z+Xa-dttE1f0FvU sJdg8$|DEdJTlHU4-T#>u{GA%)e;QX^2^H;;iu`9i`O~帆软 + com.fr.plugin.pack + - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/java/com/fr/plugin/pack/ReportBridge.java b/src/main/java/com/fr/plugin/pack/ReportBridge.java index f45c106..5f9e43c 100644 --- a/src/main/java/com/fr/plugin/pack/ReportBridge.java +++ b/src/main/java/com/fr/plugin/pack/ReportBridge.java @@ -2,8 +2,10 @@ package com.fr.plugin.pack; import com.finebi.conf.internalimp.component.ReportComponent; import com.fr.decision.fun.impl.AbstractWebResourceProvider; +import com.fr.plugin.transform.FunctionRecorder; import com.fr.web.struct.Atom; +@FunctionRecorder public class ReportBridge extends AbstractWebResourceProvider { @Override public Atom attach() { diff --git a/src/main/java/com/fr/plugin/pack/ReportDef.java b/src/main/java/com/fr/plugin/pack/ReportDef.java index 3c81ffc..0516ff0 100644 --- a/src/main/java/com/fr/plugin/pack/ReportDef.java +++ b/src/main/java/com/fr/plugin/pack/ReportDef.java @@ -6,7 +6,7 @@ import com.fr.web.struct.browser.RequestClient; import com.fr.web.struct.category.ScriptPath; import com.fr.web.struct.category.StylePath; -public class ReportDef extends Component { +public class ReportDef extends Component { public static final ReportDef KEY = new ReportDef(); public ReportDef(){} public ScriptPath script(RequestClient client ) { diff --git a/src/main/resources/com/fr/plugin/pack/report.js b/src/main/resources/com/fr/plugin/pack/report.js index 3781f80..7d599e7 100644 --- a/src/main/resources/com/fr/plugin/pack/report.js +++ b/src/main/resources/com/fr/plugin/pack/report.js @@ -1,5 +1,5 @@ ;(function() { - console.log("report js loaded"); + console.log("edit js loaded"); })();