путь к двм для конвертации в настройки сервера
This commit is contained in:
@@ -180,7 +180,7 @@ public class ComponentsServer extends RepositoryServer<BugReportsDatabase> {
|
||||
File program = Paths.get(project.getAbsolutePath(), fileName).toFile();
|
||||
//--
|
||||
File convertedProgram = Paths.get(program.getParent(), Utils_.getFileNameWithoutExtension(program) + ".DVMH." + (projectLanguage.equals(LanguageName.fortran) ? "f" : "c")).toFile();
|
||||
String command = Utils_.DQuotes(Constants.server_dvm_drv) + " " + projectLanguage.getDVMCompile() + "dv " + options + " " + Utils_.DQuotes(program.getName());
|
||||
String command = Utils_.DQuotes(Global.componentsServerProperties.default_dvm_drv) + " " + projectLanguage.getDVMCompile() + "dv " + options + " " + Utils_.DQuotes(program.getName());
|
||||
//--
|
||||
File fileWorkspace = program.getParentFile();
|
||||
Process process = Utils.startScript(workspace, fileWorkspace, Utils_.getDateName("convert_script"), command);
|
||||
|
||||
@@ -14,6 +14,8 @@ public class ComponentsServerProperties extends VisualDVMProperties{
|
||||
public int BackupMinute = 0;
|
||||
@Expose
|
||||
public int ComponentsBackUpsCount = 10;
|
||||
@Expose
|
||||
public String default_dvm_drv="";
|
||||
//---
|
||||
public ComponentsServerProperties(){
|
||||
Mode = _VisualDVM.Mode.Server;
|
||||
|
||||
@@ -96,7 +96,6 @@ public class Constants {
|
||||
"bad termination"
|
||||
};
|
||||
public final static String separator = "----------------------------------";
|
||||
public static final String server_dvm_drv = "/home/DVM/dvm_current/dvm_sys/bin/dvm_drv"; //зависимость от путей. в настройки?
|
||||
//-------------------------------------------------------
|
||||
public static String[] resourses_names = new String[]{
|
||||
//--
|
||||
|
||||
Reference in New Issue
Block a user