Skip to content

Commit

Permalink
Merge branch 'v2' of https://github.com/moosetechnology/VerveineJ int…
Browse files Browse the repository at this point in the history
…o v2
  • Loading branch information
badetitou committed Jan 7, 2022
2 parents 356b6a9 + 45bb54b commit 2ab5e93
Show file tree
Hide file tree
Showing 32 changed files with 412 additions and 316 deletions.
2 changes: 1 addition & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
<classpathentry kind="lib" path="lib/org.eclipse.jdt.core_3.13.50.v20171007-0855.jar"/>
<classpathentry kind="lib" path="lib/org.eclipse.osgi_3.12.50.v20170928-1321.jar"/>
<classpathentry kind="lib" path="lib/commons-codec-1.7.jar"/>
<classpathentry kind="lib" path="lib/fame.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry combineaccessrules="false" kind="src" path="/FameJava"/>
<classpathentry kind="output" path="bin"/>
</classpath>
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: CI
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ v* ]
branches: [ v*, java-17 ]
pull_request:
branches: [ v* ]

Expand All @@ -23,9 +23,10 @@ jobs:
- uses: actions/checkout@v2

- name: Setup Java JDK
uses: actions/setup-java@v1.4.3
uses: actions/setup-java@v2
with:
java-version: 10
distribution: 'temurin'
java-version: '17'

- name: Build with Ant
run: ant -noinput -buildfile build.xml junit
2 changes: 1 addition & 1 deletion .project
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</natures>
<filteredResources>
<filter>
<id>1641566397301</id>
<id>1636986252232</id>
<name></name>
<type>30</type>
<matcher>
Expand Down
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# VerveineJ

[![Use Java 10](https://img.shields.io/badge/Java-10-brightgreen)](https://jdk.java.net/10/) ![CI](https://github.com/moosetechnology/VerveineJ/workflows/CI/badge.svg?branch=master)
[![Use Java 17](https://img.shields.io/badge/Java-17-brightgreen)](https://adoptium.net/) ![CI](https://github.com/moosetechnology/VerveineJ/workflows/CI/badge.svg?branch=master)

A Java to MSE parser
A Java to JSON/MSE parser

Based on JDT, it parser java code to export it in the MSE format used by the Moose data analysis platform.
(Similar to the https://github.com/feenkcom/jdt2famix project, but more complete in what it extracts)
Expand All @@ -24,6 +24,6 @@ git clone git@github.com:moosetechnology/VerveineJ.git
## Developers

To test the project, remember that you **must** disable the `assert` by removing (or not using) the -ea parameter.
You also need to run test one by one (fork method in IntelliJ).
You also need to run tests one by one (fork method in IntelliJ).

> You can also use And or the pre-created IntelliJ build
> You can also use Ant or the pre-created IntelliJ build
7 changes: 4 additions & 3 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</target>

<target name="compile" depends="clean, makedir">
<javac srcdir="${src.dir}" destdir="${build.dir}" source="1.9" target="1.9" includeantruntime="false" debug="true" debuglevel="lines,vars,source">
<javac srcdir="${src.dir}" destdir="${build.dir}" source="17" target="17" includeantruntime="false" debug="true" debuglevel="lines,vars,source">
<classpath>
<fileset dir="${dist.dir}">
<include name="*.jar"/>
Expand Down Expand Up @@ -70,14 +70,15 @@

<!-- Run the JUnit Tests -->
<target name="junit" depends="jar">
<junit printsummary="on" fork="true" haltonfailure="true" haltonerror="true">
<junit fork="false" haltonfailure="true" haltonerror="true">
<classpath>
<fileset dir="${dist.dir}">
<include name="*.jar"/>
</fileset>
</classpath>

<formatter type="plain" usefile="false" />
<formatter type="plain"/>
<formatter type="xml" />

<batchtest fork="yes" todir="${test.report.dir}">
<fileset dir="${testsrc.dir}">
Expand Down
1 change: 1 addition & 0 deletions docs/lanModel.drawio
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<mxfile host="Electron" modified="2022-01-05T14:01:07.982Z" agent="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/15.8.7 Chrome/91.0.4472.164 Electron/13.6.2 Safari/537.36" etag="LnQ1Gj5u6Xcot0bu3CDD" version="15.8.7" type="device"><diagram id="C5RBs43oDa-KdzZeNtuy" name="Page-1">7Z1td5u4Esc/Tc5pX/geiyebl7HT7t29abdb9273viS2YrPFxgu4ifvpr8DINkhKTEAMKdPTngYFP6D/SPrNaCRdmdP14y+Rt119CBc0uDKGi8cr8+bKYH8sl/2XluzzkqFlHUqWkb84lJFTwcz/QfPCYV668xc0LtyYhGGQ+Nti4TzcbOg8KZR5URQ+FG+7D4Pip269JRUKZnMvEEu/+otkdSgdG6NT+b+pv1zxTyZO/sRrj9+cP0m88hbhw1mR+e7KnEZhmBx+Wj9OaZDWHq+Xr7/uvwa335xffvsj/sf77+Q/Xz7+OTi82fsqLzk+QkQ3yYvf+vPHhx2x3n2k7viPDx8S+/Of0e2AOObhzb97wS6vsfxpkz2vwijcbRY0fRtyZU4eVn5CZ1tvnv72gVkNK1sl6yD/9cKLV8d7l5G38NmXnoZBGLGyTbhhr5rkH0mjhD6WVHrmEcmx3pnF0nBNk2jPXpe/y8DkVpdb68Aw84KHk/bEystW57pzlb3c3pbHdz/VKfshr9YKVWwJ9UkXzELzyzBKVuEy3HjBu1Pp5FTjQ3Z1uuc2DLd51f5Nk2SfNzdvl4RFFehmcZ02HnZ5F4Tzb4ei93761bP3ZNUc7f9KL/5l88v/HV/MLm4ez++82edXh4dJn+AFwrFaCHfRnD5RW7kKiRctafLEfbbcECIaeIn/vfjlZJLmL/0U+uxrHw3IMor2Y1klqzh8r/xVJcM4fo2X28pQaIxfw+jbLGHPFG7YL94Q230r2FP84K8DL2tZ9+Em4aaVSukF/nLDfp4zdShrgZO00fmsd7zOf5GkBjWZr/xgcevtw11a53Hizb/xq8kqjPwf7G09blvs11GSW57hFO6Ypa/MLSWiMbvnEzcMUir64D0Wbrz14iQvmIdB4G1j/+74GGtW7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5BCZsulZpJSmBAbPITJVJ2chpbRkAvA5RHxioW8zdGbugXV9hs4UPcXZPk5ovrARj2YE58fy3BxuuXwyXpUbjPRYf2QZVabHVjdlJaZs+QHSY1MCQ2+7THg/h/QIZQLgGy/nR2YVY1wrL5rRf3Z0M8+T0DF/CJxRBhZfK4A7Lws2jCEubR2Y6ki9zuziZWGIS6fA4Nt4WRjiAm7j8Pt4WZKzq3ZJWFreP0ZKeQXL+40GAqY/C7fg8n59fVrXl/fbMucbuaUpgcGn5mxc3g/cxuGn5mzZ8v7zxOcvqRG8GZk4CQQeYMEUIrUZ4yJ/bX2YXX2Rf8t9GC7y1ykwPKfgIn/gNg7PKY7Ywf/mffdYCRmlT5jWIvs/vE/v8emDygjO8oOq2oOSZY4dwsPKT+iM2UH6mQ+Rt70qpzFdRg+1d8EuDd2D41h+LiCRCMjH+AoCsssoDJPzAZ09+epDuKDpHf8H</diagram></mxfile>
Binary file modified lib/verveine.extractor.java.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ public Invocation addFamixInvocation(Method sender, Method invoked, NamedEntity
Invocation invok = new Invocation();
invok.setReceiver(receiver);
invok.setSender(sender);
invok.setSignature((signature== null) ? invoked.getSignature() : signature);
invok.setSignature((signature == null) ? invoked.getSignature() : signature);
invok.addCandidates(invoked);
chainPrevNext(prev,invok);
famixRepoAdd(invok);
Expand Down
2 changes: 1 addition & 1 deletion src/fr/inria/verveine/extractor/java/VerveineJOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static AnchorOptions getValue(String option) {
*/
public final static String JSON_OUTPUT_FORMAT = "JSON";

public static final String DEFAULT_CODE_VERSION = JavaCore.VERSION_1_5;
public static final String DEFAULT_CODE_VERSION = JavaCore.VERSION_9;

/**
* TODO remove ?
Expand Down
Binary file added test_src/jws_basic/lib/javax.jws-api-1.1.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
<?xml version='1.0'?>
<definitions name="AudiSupplierServiceDefinitions" targetNamespace="http://example.org" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:s0="java:audi.client" xmlns:s1="http://example.org" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/">
<n1:types xmlns:n1="http://schemas.xmlsoap.org/wsdl/">
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="java:audi.client" xmlns:n1="http://schemas.xmlsoap.org/wsdl/" xmlns:s0="java:audi.client" xmlns:s1="http://example.org" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="OrderStruct">
<xs:sequence>
<xs:element minOccurs="0" name="Supplier" nillable="false" type="xs:string"/>
<xs:element minOccurs="0" name="PartName" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="PartID" nillable="false" type="xs:string"/>
<xs:element minOccurs="0" name="Amount" nillable="false" type="xs:long"/>
<xs:element minOccurs="0" name="Notes" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
</n1:types>
<n2:message xmlns:n2="http://schemas.xmlsoap.org/wsdl/" name="processOrderApp">
<n2:part name="orderRequest" type="s0:OrderStruct"/>
</n2:message>
<n3:message xmlns:n3="http://schemas.xmlsoap.org/wsdl/" name="processOrderAppResponse">
<n3:part name="return" type="s0:OrderStruct"/>
</n3:message>
<n4:portType xmlns:n4="http://schemas.xmlsoap.org/wsdl/" name="myPortType">
<n4:operation name="processOrderApp" parameterOrder="orderRequest">
<n4:input message="s1:processOrderApp"/>
<n4:output message="s1:processOrderAppResponse"/>
</n4:operation>
</n4:portType>
<n5:binding xmlns:n5="http://schemas.xmlsoap.org/wsdl/" name="AudiSupplierServiceSoapBinding" type="s1:myPortType">
<s2:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<n5:operation name="processOrderApp">
<s2:operation soapAction="http://example.orgprocessOrderApp" style="rpc"/>
<n5:input>
<s2:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://example.org" use="encoded"/>
</n5:input>
<n5:output>
<s2:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://example.org" use="encoded"/>
</n5:output>
</n5:operation>
</n5:binding>
<n6:service xmlns:n6="http://schemas.xmlsoap.org/wsdl/" name="AudiSupplierService">
<n6:port binding="s1:AudiSupplierServiceSoapBinding" name="helloPort">
<s2:address location="http://localhost:7001/audi_jws_basic_ejb/AudiSupplierSimpleBean"/>
</n6:port>
</n6:service>
</definitions>
<?xml version='1.0'?>
<definitions name="AudiSupplierServiceDefinitions" targetNamespace="http://example.org" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:s0="java:audi.client" xmlns:s1="http://example.org" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/">
<n1:types xmlns:n1="http://schemas.xmlsoap.org/wsdl/">
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="java:audi.client" xmlns:n1="http://schemas.xmlsoap.org/wsdl/" xmlns:s0="java:audi.client" xmlns:s1="http://example.org" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="OrderStruct">
<xs:sequence>
<xs:element minOccurs="0" name="Supplier" nillable="false" type="xs:string"/>
<xs:element minOccurs="0" name="PartName" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="PartID" nillable="false" type="xs:string"/>
<xs:element minOccurs="0" name="Amount" nillable="false" type="xs:long"/>
<xs:element minOccurs="0" name="Notes" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
</n1:types>
<n2:message xmlns:n2="http://schemas.xmlsoap.org/wsdl/" name="processOrderApp">
<n2:part name="orderRequest" type="s0:OrderStruct"/>
</n2:message>
<n3:message xmlns:n3="http://schemas.xmlsoap.org/wsdl/" name="processOrderAppResponse">
<n3:part name="return" type="s0:OrderStruct"/>
</n3:message>
<n4:portType xmlns:n4="http://schemas.xmlsoap.org/wsdl/" name="myPortType">
<n4:operation name="processOrderApp" parameterOrder="orderRequest">
<n4:input message="s1:processOrderApp"/>
<n4:output message="s1:processOrderAppResponse"/>
</n4:operation>
</n4:portType>
<n5:binding xmlns:n5="http://schemas.xmlsoap.org/wsdl/" name="AudiSupplierServiceSoapBinding" type="s1:myPortType">
<s2:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<n5:operation name="processOrderApp">
<s2:operation soapAction="http://example.orgprocessOrderApp" style="rpc"/>
<n5:input>
<s2:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://example.org" use="encoded"/>
</n5:input>
<n5:output>
<s2:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://example.org" use="encoded"/>
</n5:output>
</n5:operation>
</n5:binding>
<n6:service xmlns:n6="http://schemas.xmlsoap.org/wsdl/" name="AudiSupplierService">
<n6:port binding="s1:AudiSupplierServiceSoapBinding" name="helloPort">
<s2:address location="http://localhost:7001/audi_jws_basic_ejb/AudiSupplierSimpleBean"/>
</n6:port>
</n6:service>
</definitions>
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 2ab5e93

Please sign in to comment.