Skip to content

Commit

Permalink
changes required to start org.jcryptool.functionlistgen early
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Leischnig <[email protected]>
  • Loading branch information
Simon Leischnig committed Dec 21, 2019
1 parent 43242bb commit 7b35906
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 9 deletions.
2 changes: 1 addition & 1 deletion org.jcryptool.core.feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ litigation.
id="org.jcryptool.functionlistgen"
download-size="0"
install-size="0"
version="0.0.0"
version="1.0.0"
unpack="false"/>

</feature>
12 changes: 12 additions & 0 deletions org.jcryptool.core.operations/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,17 @@
file="$nl$/contexts.xml">
</contexts>
</extension>
<extension
point="org.eclipse.ui.startup">
<startup
class="org.jcryptool.core.operations.CmdLineParser">
</startup>
</extension>
<extension
point="org.eclipse.ui.startup">
<startup
class="org.jcryptool.core.operations.Startup1">
</startup>
</extension>

</plugin>
5 changes: 2 additions & 3 deletions org.jcryptool.functionlistgen/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Functionality list generator
Bundle-SymbolicName: org.jcryptool.functionlistgen;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Version: 1.0.0
Bundle-Activator: org.jcryptool.functionlistgen.Activator
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
Expand All @@ -12,7 +12,6 @@ Require-Bundle: org.eclipse.ui,
org.jcryptool.core.operations,
org.jcryptool.core.views,
org.jcryptool.core
Bundle-RequiredExecutionEnvironment: JavaSE-11
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Automatic-Module-Name: org.jcryptool.functionlistgen
Bundle-ActivationPolicy: lazy
Import-Package: org.jcryptool.crypto.flexiprovider.ui.nodes
13 changes: 13 additions & 0 deletions org.jcryptool.functionlistgen/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<parent>
<groupId>org.jcryptool</groupId>
<artifactId>org.jcryptool.core.parent</artifactId>
<version>1.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>org.jcryptool.functionlistgen</artifactId>
<packaging>eclipse-plugin</packaging>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public class Activator extends AbstractUIPlugin {
* The constructor
*/
public Activator() {
System.err.println("Function List Plugin is being loaded...");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
package org.jcryptool.functionlistgen;

import java.io.BufferedInputStream;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.util.Comparator;
import java.util.HashMap;
Expand Down Expand Up @@ -80,6 +77,8 @@ public void earlyStartup() {
boolean showInStdout = false;
List<File> outputs = new LinkedList<File>();
String[] cmdlineargs = Platform.getCommandLineArgs();

System.err.println("Function List Plugin is processing command line parameters of length " + cmdlineargs.length + "...");
for (int i = 0; i < cmdlineargs.length; i++) {
String currentArg = cmdlineargs[i];
if(currentArg.equals("-GenerateFunctionList")) {
Expand Down
3 changes: 2 additions & 1 deletion org.jcryptool.product/jcryptool.product
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?pde version="3.5"?>

<product name="JCrypTool" uid="jcryptool" id="org.jcryptool.core.product" application="org.jcryptool.core.application" version="1.0.0" useFeatures="true" includeLaunchers="true">
<product name="JCrypTool" uid="jcryptool" id="org.jcryptool.core.product" application="org.eclipse.help.base.helpApplication" version="1.0.0" useFeatures="true" includeLaunchers="true">

<aboutInfo>
<image path="/org.jcryptool.core/icons/about_dialog.gif"/>
Expand Down Expand Up @@ -129,6 +129,7 @@ Agreement more than one year after the cause of action arose. Each party waives
<plugin id="org.eclipse.osgi" autoStart="true" startLevel="0" />
<plugin id="org.eclipse.update.configurator" autoStart="true" startLevel="4" />
<plugin id="org.jcryptool.crypto.keystore" autoStart="true" startLevel="4" />
<plugin id="org.jcryptool.functionlistgen" autoStart="true" startLevel="4" />
<property name="Dfile.encoding" value="UTF-8" />
</configurations>

Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@
<module>org.jcryptool.target</module>
<module>org.jcryptool.views.feature</module>
<module>org.jcryptool.webbrowser</module>
<module>org.jcryptool.functionlistgen</module>
</modules>
</project>
</project>

0 comments on commit 7b35906

Please sign in to comment.