Changeset fdb6ec7 in rtems-eclipse-plug-in


Ignore:
Timestamp:
Mar 30, 2009, 8:45:11 AM (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
ee7d7a4
Parents:
1042588
Message:

Changed base and BSP default paths.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • org.rtems.cdt/src/org/rtems/cdt/Constants.java

    r1042588 rfdb6ec7  
    2525import java.util.Map;
    2626
     27import org.eclipse.core.runtime.Platform;
     28
    2729public class Constants {
    2830        public static final String PATH_SEPARATOR = System.getProperty( "path.separator");
     
    3638        public static final String BSP_PATH_MAKE_VARIABLE = "PROJECT_RELEASE";
    3739
    38         public static final String DEFAULT_BASE_PATH = "/opt/rtems-4.9";
     40        public static final String DEFAULT_BASE_PATH = getDefaultPath();
    3941
    40         public static final String DEFAULT_BSP_PATH = "/opt/rtems-4.9/powerpc-rtems4.9/psim";
     42        public static final String DEFAULT_BSP_PATH = getDefaultPath();
    4143
    4244        public static final String DEFAULT_CYGWIN_PATH = "C:\\";
     
    106108                return "PATH";
    107109        }
     110       
     111        private static String getDefaultPath() {
     112                if (Platform.getOS().equals( Platform.OS_WIN32)) {
     113                        return "C:\\";
     114                } else {
     115                        return "/opt/rtems-4.9";
     116                }
     117        }
    108118
    109119        private Constants() {
Note: See TracChangeset for help on using the changeset viewer.