-
Notifications
You must be signed in to change notification settings - Fork 0
/
Java.h
48 lines (41 loc) · 1.16 KB
/
Java.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#pragma once
class CScannerOptions;
class CJavaManifest {
public:
std::string title;
std::string vendor;
std::string version;
std::string mainClass;
std::string startClass;
std::string createdBy;
std::string builtBy;
std::string buildJDK;
CJavaManifest() {
title.clear();
vendor.clear();
version.clear();
mainClass.clear();
startClass.clear();
createdBy.clear();
builtBy.clear();
buildJDK.clear();
}
};
class CJavaProperties {
public:
std::string artifactId;
std::string groupId;
std::string version;
CJavaProperties() {
artifactId.clear();
groupId.clear();
version.clear();
}
};
int32_t ParseJavaManifest(std::string manifest,
CJavaManifest& javaManifest);
int32_t ParseJavaProperties(std::string properties,
CJavaProperties& javaProperties);
int32_t ProcessJavaFileJAR(CScannerOptions& options, std::wstring file, std::wstring file_physical);
int32_t ProcessJavaFileWAR(CScannerOptions& options, std::wstring file, std::wstring file_physical);
int32_t ProcessJavaFileEAR(CScannerOptions& options, std::wstring file, std::wstring file_physical);