Exemplo n.º 1
0
  public static void virtual_unpack_7128123785277710736(
      SNode thisNode, UnpackHelper helper, Iterable<Object> artifacts) {
    SNode parent = helper.parent(thisNode);
    String parentLocation = helper.contentLocations().get(parent);
    String zipLocation =
        parentLocation
            + "/"
            + BuildString_Behavior.call_getText_4380385936562005550(
                SLinkOperations.getTarget(thisNode, "containerName", true),
                helper.getMacroHelper());
    helper.locations().put(thisNode, zipLocation);

    if (helper.isContentRequired(thisNode)) {
      String tempPath =
          helper
              .getPathProvider()
              .createTempPath(
                  SPropertyOperations.getString(thisNode, "name"),
                  "deps",
                  SPropertyOperations.getString(
                      SNodeOperations.getAncestor(
                          thisNode, "jetbrains.mps.build.structure.BuildProject", false, false),
                      "name"));
      helper.emit(_quotation_createNode_20awhq_a0a1a5a0(tempPath));
      helper.emit(_quotation_createNode_20awhq_a0a2a5a0(zipLocation, tempPath));
      helper.contentLocations().put(thisNode, tempPath);
    }
  }
 public static String call_getOutputPath_WithMacro_202934866059116697(
     SNode thisNode, Context context) {
   if ((SNodeOperations.getParent(thisNode) != null)
       && SNodeOperations.isInstanceOf(
           SNodeOperations.getParent(thisNode),
           "jetbrains.mps.build.structure.BuildLayout_Container")) {
     String parentChildrenTargetDir =
         BuildLayout_Container_Behavior.call_getChildrenOutputDir_WithMacro_4701820937132344011(
             SNodeOperations.cast(
                 SNodeOperations.getParent(thisNode),
                 "jetbrains.mps.build.structure.BuildLayout_Container"),
             context);
     return parentChildrenTargetDir
         + "/"
         + BuildString_Behavior.call_getText_4380385936562005550(
             SLinkOperations.getTarget(thisNode, "fileName", true), context.getMacros(thisNode));
   }
   return null;
 }
Exemplo n.º 3
0
 public static String virtual_getApproximateName_5610619299013425878(SNode thisNode) {
   return BuildString_Behavior.call_getText_4380385936562005550(
       SLinkOperations.getTarget(thisNode, "containerName", true), null);
 }