Mantis Bugtracker

Erweiterte Problemanzeige Zu Notizen wechseln ] einfache Anzeige ] Problem-Historie ] Drucken ]
ID Kategorie Auswirkung Reproduzierbar Meldungsdatum Letzte Aktualisierung
0000102 [Cadmium] general schwerer Fehler immer 2012-07-27 20:00 2013-03-28 07:14
Reporter dobesv Anzeigestatus öffentlich  
Bearbeitung durch xclerc
Priorität normal Lösung erledigt Rechnertyp
Status erledigt   Betriebssystem
Projektion keine   BS-Version
Aufwand keine Behoben in Version Produktversion 1.4
  Zielversion Produkt-Build
Zusammenfassung 0000102: Reports OS as 'Unix' in Windows
Beschreibung In windows by default it will report the OS as 'Unix' even though it is running on a Windows environment.

This can cause some issues with path name calculations, among other things.
Schritte zur Reproduktion
Zusätzliche Information
Tags Keine Tags zugeordnet.
Angehängte Dateien

- Problem-Beziehungen

-  Notiz
dobesv (Reporter)
2012-07-27 20:14

It appears that this is "as documented"

So, perhaps this should be considered a feature request to either:

1) Allow OS to be set easily at runtime

2) Detect the OS at runtime
dobesv (Reporter)
2012-07-27 20:22

The logic behind this is that if the resulting jar file is to be distributed, the runtime operating system may be different from the compile-time operating system.

In my case I am trying to load the cafesterolMain class from Java code. One possible solution would be to allow cafesterolMain to take more parameters in its mainWithReturn, perhaps allowing one to override the NativeParameters object rather than have that one always hard-coded into the generated class file.
xclerc (Administrator)
2013-03-28 07:14

The OCaml-Java runtime now reports the actual OS, unless the
value is overridden through parameter.

In addition, the environment variable "OCAMLJAVA_VERSION"
can be used in order to detect whether the classical OCaml
version or its OCaml-Java variant is running.

- Problem-Historie
Änderungsdatum Benutzername Feld Änderung
2012-07-27 20:00 dobesv Neues Problem
2012-07-27 20:14 dobesv Problemnotiz hinzugefügt: 0000250
2012-07-27 20:22 dobesv Problemnotiz hinzugefügt: 0000251
2013-03-28 07:14 xclerc Problemnotiz hinzugefügt: 0000275
2013-03-28 07:14 xclerc Status neu => erledigt
2013-03-28 07:14 xclerc Lösung offen => erledigt
2013-03-28 07:14 xclerc Bearbeitung durch => xclerc

Mantis 1.1.7[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker