Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CSCWebsocketBean
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TongZuu
CSCWebsocketBean
Commits
adf557d1
Commit
adf557d1
authored
Jun 07, 2016
by
TongZuu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve path upload and download
parent
725d39d6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
16 deletions
+22
-16
.classpath
.classpath
+9
-9
org.eclipse.jdt.core.prefs
.settings/org.eclipse.jdt.core.prefs
+4
-3
org.eclipse.wst.common.project.facet.core.xml
.settings/org.eclipse.wst.common.project.facet.core.xml
+1
-1
DownloadFtp.java
com/csc/library/command/ftp/DownloadFtp.java
+3
-1
UploadFtp.java
com/csc/library/command/ftp/UploadFtp.java
+3
-1
CommandSpecialBase.java
com/csc/library/command/special/CommandSpecialBase.java
+2
-1
No files found.
.classpath
View file @
adf557d1
...
...
@@ -7,18 +7,18 @@
<attribute
name=
"owner.project.facets"
value=
"jst.utility"
/>
</attributes>
</classpathentry>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER"
>
<classpathentry
kind=
"lib"
path=
"/Users/csc-mac/Documents/EnterprisePT/Programmer/myHRAppServer/wildfly-10.0.0.tpbs/standalone/deployments/TPBS.ear/hrAppWeb.war/WEB-INF/lib/CSCFrameWork.jar"
/>
<classpathentry
kind=
"lib"
path=
"/Users/csc-mac/Documents/EnterprisePT/Programmer/myHRAppServer/wildfly-10.0.0.tpbs/standalone/deployments/TPBS.ear/hrAppWeb.war/WEB-INF/lib/dynamicjava.jar"
/>
<classpathentry
kind=
"lib"
path=
"/Users/csc-mac/Documents/EnterprisePT/Programmer/myHRAppServer/wildfly-10.0.0.tpbs/standalone/deployments/TPBS.ear/hrAppWeb.war/WEB-INF/lib/jdom.jar"
/>
<classpathentry
kind=
"lib"
path=
"/Users/csc-mac/Documents/EnterprisePT/jar/mail.jar"
/>
<classpathentry
kind=
"lib"
path=
"/Users/csc-mac/Documents/EnterprisePT/Programmer/myHRAppServer/wildfly-10.0.0.tpbs/standalone/deployments/TPBS.ear/hrAppWeb.war/WEB-INF/lib/gson.jar"
/>
<classpathentry
combineaccessrules=
"false"
kind=
"src"
path=
"/csc-websocket-api"
/>
<classpathentry
kind=
"lib"
path=
"/Users/csc-mac/Documents/EnterprisePT/Programmer/myHRAppServer/wildfly-10.0.0.tpbs/standalone/deployments/TPBS.ear/hrAppWeb.war/WEB-INF/lib/commons-lang-2.3.jar"
sourcepath=
"D:/EnterprisePT/jar/commons/src/commons-lang-2.3-sources.jar"
/>
<classpathentry
kind=
"lib"
path=
"/Users/csc-mac/Documents/EnterprisePT/Programmer/myHRAppServer/wildfly-10.0.0.tpbs/standalone/deployments/TPBS.ear/hrAppWeb.war/WEB-INF/lib/CscServlet.jar"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.launching.macosx.MacOSXType/Java SE 8 [1.8.0_91]"
>
<attributes>
<attribute
name=
"owner.project.facets"
value=
"java"
/>
</attributes>
</classpathentry>
<classpathentry
kind=
"lib"
path=
"D:/EnterprisePT/Programmer/myHRAppServer/wildfly-10.0.0.tpbs/standalone/deployments/TPBS.ear/hrAppWeb.war/WEB-INF/lib/CSCFrameWork.jar"
/>
<classpathentry
kind=
"lib"
path=
"D:/EnterprisePT/Programmer/myHRAppServer/wildfly-10.0.0.tpbs/standalone/deployments/TPBS.ear/hrAppWeb.war/WEB-INF/lib/dynamicjava.jar"
/>
<classpathentry
kind=
"lib"
path=
"D:/EnterprisePT/Programmer/myHRAppServer/wildfly-10.0.0.tpbs/standalone/deployments/TPBS.ear/hrAppWeb.war/WEB-INF/lib/jdom.jar"
/>
<classpathentry
kind=
"lib"
path=
"D:/EnterprisePT/jar/mail.jar"
/>
<classpathentry
kind=
"lib"
path=
"D:/EnterprisePT/Programmer/myHRAppServer/wildfly-10.0.0.tpbs/standalone/deployments/TPBS.ear/hrAppWeb.war/WEB-INF/lib/gson.jar"
/>
<classpathentry
combineaccessrules=
"false"
kind=
"src"
path=
"/csc-websocket-api"
/>
<classpathentry
kind=
"lib"
path=
"D:/EnterprisePT/jar/commons/commons-lang-2.3.jar"
sourcepath=
"D:/EnterprisePT/jar/commons/src/commons-lang-2.3-sources.jar"
/>
<classpathentry
kind=
"lib"
path=
"D:/EnterprisePT/Programmer/myHRAppServer/wildfly-10.0.0.tpbs/standalone/deployments/TPBS.ear/hrAppWeb.war/WEB-INF/lib/CscServlet.jar"
/>
<classpathentry
kind=
"output"
path=
""
/>
</classpath>
.settings/org.eclipse.jdt.core.prefs
View file @
adf557d1
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.
6
org.eclipse.jdt.core.compiler.compliance=1.
8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.
6
org.eclipse.jdt.core.compiler.source=1.
8
.settings/org.eclipse.wst.common.project.facet.core.xml
View file @
adf557d1
...
...
@@ -3,6 +3,6 @@
<runtime
name=
"WildFly 10.0 Runtime"
/>
<fixed
facet=
"java"
/>
<fixed
facet=
"jst.utility"
/>
<installed
facet=
"java"
version=
"1.6"
/>
<installed
facet=
"jst.utility"
version=
"1.0"
/>
<installed
facet=
"java"
version=
"1.8"
/>
</faceted-project>
com/csc/library/command/ftp/DownloadFtp.java
View file @
adf557d1
...
...
@@ -7,12 +7,14 @@ import com.csc.library.factory.FileFtpFactory;
import
com.csc.library.properties.JsonFile
;
import
com.csc.library.properties.JsonFileImpl
;
import
com.csc.library.request.CommandState
;
import
com.csc.library.session.InitialEnvironment
;
public
class
DownloadFtp
extends
CommandFileResult
<
JsonFile
>{
@Override
public
void
execute
(
JsonFile
param
)
throws
Exception
{
File
file
=
new
File
(
param
.
getDirectory
()+
"/"
+
param
.
getFileName
());
String
dirupload
=
new
InitialEnvironment
().
getValue
(
param
.
getDirectory
());
File
file
=
new
File
(
dirupload
+
"/"
+
param
.
getFileName
());
if
(
file
.
exists
()){
this
.
setFile
(
FileFtpFactory
.
getInstance
().
createJsonFile
(
file
));
this
.
sendMessage
(
"DownloadFtp : Success"
,
CommandState
.
success
);
...
...
com/csc/library/command/ftp/UploadFtp.java
View file @
adf557d1
...
...
@@ -5,13 +5,15 @@ import java.io.File;
import
com.csc.library.command.CommandNoResult
;
import
com.csc.library.properties.JsonFile
;
import
com.csc.library.properties.JsonFileImpl
;
import
com.csc.library.session.InitialEnvironment
;
public
class
UploadFtp
extends
CommandNoResult
<
JsonFile
>{
@Override
public
void
execute
(
JsonFile
jsonFile
)
throws
Exception
{
if
(
jsonFile
!=
null
){
jsonFile
.
writeFile
(
jsonFile
.
getDirectory
()+
"/"
+
jsonFile
.
getFileName
());
String
dirupload
=
new
InitialEnvironment
().
getValue
(
jsonFile
.
getDirectory
());
jsonFile
.
writeFile
(
dirupload
+
"/"
+
jsonFile
.
getFileName
());
}
}
}
com/csc/library/command/special/CommandSpecialBase.java
View file @
adf557d1
...
...
@@ -38,10 +38,11 @@ public class CommandSpecialBase extends CommandLists<List<String>>{
record
.
put
(
field
,
ds
.
getString
(
field
));
}
this
.
putNewRecord
(
record
);
this
.
setCommandState
(
CommandState
.
success
);
}
this
.
setCommandState
(
CommandState
.
success
);
}
catch
(
Exception
e
){
MyLog
.
error
(
this
,
this
.
getUProfile
()
,
e
);
this
.
setCommandState
(
CommandState
.
fail
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment