Skip to content

Fix50sp2 from orchestra #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading