Skip to content

Commit

Permalink
Merge pull request #5 from david-gibbs-ig/fix50sp2-from-orchestra
Browse files Browse the repository at this point in the history
Fix50sp2 from orchestra
  • Loading branch information
david-gibbs-ig authored Nov 3, 2024
2 parents 50f2f3c + 0757aed commit 2f0379a
Show file tree
Hide file tree
Showing 52 changed files with 19,036 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

<parent>
<groupId>org.quickfixj.custom.examples</groupId>
<artifactId>orchestration-examples-parent</artifactId>
<artifactId>legacy-codegen-parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>

<artifactId>legacy-codegen-application-messages</artifactId>
<artifactId>legacy-codegen-fix50sp2-application-messages</artifactId>
<packaging>jar</packaging>

<name>QuickFIX/J custom legacy codegen application messages</name>
Expand Down
5 changes: 2 additions & 3 deletions custom-applications/pom.xml → legacy-codegen/pom.xml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@
<version>0.0.1-SNAPSHOT</version>
</parent>

<artifactId>custom-applications-parent</artifactId>
<artifactId>legacy-codegen-parent</artifactId>
<packaging>pom</packaging>

<dependencies>
</dependencies>

<modules>
<module>using-fixlatest-server</module>
<module>using-fixlatest-client</module>
<module>legacy-codegen-fix50sp2-application-messages</module>
<module>using-legacy-codegen-server</module>
<module>using-legacy-codegen-client</module>
</modules>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<parent>
<groupId>org.quickfixj.custom.examples</groupId>
<artifactId>custom-applications-parent</artifactId>
<artifactId>legacy-codegen-parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>

Expand Down Expand Up @@ -41,7 +41,7 @@
</dependency>
<dependency>
<groupId>org.quickfixj.custom.examples</groupId>
<artifactId>legacy-codegen-application-messages</artifactId>
<artifactId>legacy-codegen-fix50sp2-application-messages</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public void onMessage(ExecutionReport executionReport, SessionID sessionID)
Instrument instrumentComponent = executionReport.getInstrument(); // invariant
log.info("Received ExecutionReport from sender [{}]:: clOrdID {}, symbol {}, side {}, transactTime {}, ordType {}, securityIDSource {}, securityID {}",
executionReport.getHeader().getString(SenderCompID.FIELD),
instrumentComponent.getSymbol().getValue(),
executionReport.getClOrdID().getValue(),
instrumentComponent.getSymbol().getValue(),
executionReport.getSide().getValue(),
executionReport.getTransactTime().getValue(),
executionReport.getOrdType().getValue(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<parent>
<groupId>org.quickfixj.custom.examples</groupId>
<artifactId>custom-applications-parent</artifactId>
<artifactId>legacy-codegen-parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>

Expand Down Expand Up @@ -41,7 +41,7 @@
</dependency>
<dependency>
<groupId>org.quickfixj.custom.examples</groupId>
<artifactId>legacy-codegen-application-messages</artifactId>
<artifactId>legacy-codegen-fix50sp2-application-messages</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public void onMessage(NewOrderSingle newOrderSingle, SessionID sessionID)
Instrument instrumentComponent = newOrderSingle.getInstrument(); // invariant
log.info("Received NewOrderSingle from sender [{}]: clOrdID {}, symbol {}, side {}, transactTime {}, ordType {}, securityIDSource {}, securityID {}",
newOrderSingle.getHeader().getString(SenderCompID.FIELD),
instrumentComponent.getSymbol().getValue(),
newOrderSingle.getClOrdID().getValue(),
instrumentComponent.getSymbol().getValue(),
newOrderSingle.getSide().getValue(),
newOrderSingle.getTransactTime().getValue(),
newOrderSingle.getOrdType().getValue(),
Expand Down
169 changes: 169 additions & 0 deletions orchestra/fix50sp2/fix50sp2-application-messages/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.quickfixj.custom.examples</groupId>
<artifactId>orchestra-fix50sp2-parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>

<artifactId>fix50sp2-application-messages</artifactId>
<packaging>jar</packaging>

<name>QuickFIX/J fix50sp2 custom application messages</name>
<description>Example build of custom FIX application messages</description>
<url>http://www.quickfixj.org</url>

<dependencies>
<dependency>
<groupId>io.fixprotocol.orchestrations</groupId>
<artifactId>fix-standard</artifactId>
</dependency>
<dependency>
<groupId>org.quickfixj</groupId>
<artifactId>quickfixj-base</artifactId>
</dependency>
<dependency>
<groupId>org.quickfixj</groupId>
<artifactId>quickfixj-messages-fixt11</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xml-maven-plugin</artifactId>
<executions>
<execution>
<id>cleanOrchestraRepo</id>
<phase>initialize</phase>
<goals>
<goal>transform</goal>
</goals>
<configuration>
<transformationSets>
<transformationSet>
<dir>${project.basedir}/src/main/resources</dir>
<outputDir>${project.build.directory}/generated-resources</outputDir>
<includes>
<include>${orchestra.file}</include>
</includes>
<stylesheet>${project.basedir}/../../src/main/xsl/extractSessionLayer.xsl</stylesheet>
</transformationSet>
</transformationSets>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.quickfixj.orchestra</groupId>
<artifactId>quickfixj-from-fix-orchestra-code-generator-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>codeGeneration</goal>
</goals>
<id>fixOrchestraCodeGen</id>
</execution>
</executions>
<configuration>
<orchestration>target/generated-resources/example-custom-orchestra.xml</orchestration>
<outputDirectory>target/generated-sources</outputDirectory>
<excludeSession>true</excludeSession>
<generateFixt11Package>false</generateFixt11Package>
</configuration>
</plugin>
<plugin>
<groupId>org.quickfixj.orchestra</groupId>
<artifactId>quickfixj-from-fix-orchestra-dictionary-generator-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>dictionaryGeneration</goal>
</goals>
<id>fixDictionary</id>
</execution>
</executions>
<configuration>
<orchestration>target/generated-resources/example-custom-orchestra.xml</orchestration>
<outputDirectory>target/generated-resources</outputDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<phase>process-sources</phase>
<goals><goal>add-source</goal></goals>
<configuration>
<sources>
<source>${project.build.directory}/generated-sources</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<includes>
<include>*.xml</include>
<include>quickfix/field/*.class</include>
<include>quickfix/fix*/**</include>
</includes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-fix-dictionary-xml</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>target/classes</outputDirectory>
<resources>
<resource>
<directory>${project.build.directory}/generated-resources</directory>
<includes>
<include>FIX50SP2.xml</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<configuration>
<includes>
<include>*.xml</include>
<include>quickfix/fix*/**</include>
<include>quickfix/field/**</include>
</includes>
<defaultManifestFile/>
</configuration>
</plugin>
</plugins>
</build>
</project>
Loading

0 comments on commit 2f0379a

Please sign in to comment.